summaryrefslogtreecommitdiff
path: root/test/files/neg/varargs.check
blob: f3254708b8b41733a271110a461df1630ef4aca6 (plain) (blame)
1
2
3
4
5
6
7
varargs.scala:11: error: A method without repeated parameters cannot be annotated with the `varargs` annotation.
  @varargs def nov(a: Int) = 0
               ^
varargs.scala:13: error: A method with a varargs annotation produces a forwarder method with the same signature (a: Int,b: Array[java.lang.String])Int as an existing method.
  @varargs def v2(a: Int, b: String*) = 0
               ^
two errors found