diff options
author | Aleksandar Pokopec <aleksandar.prokopec@epfl.ch> | 2010-11-25 09:38:21 +0000 |
---|---|---|
committer | Aleksandar Pokopec <aleksandar.prokopec@epfl.ch> | 2010-11-25 09:38:21 +0000 |
commit | e83bcb3fc5cff4dab80120728bdfb23ca1ff70fd (patch) | |
tree | b4651d8d35e9b6f6bb3c866a58eebb9d169c62ef /test/files/neg/varargs.check | |
parent | b766d4bc9a87ec988d1e9b6af7373b7501e44daa (diff) | |
download | scala-e83bcb3fc5cff4dab80120728bdfb23ca1ff70fd.tar.gz scala-e83bcb3fc5cff4dab80120728bdfb23ca1ff70fd.tar.bz2 scala-e83bcb3fc5cff4dab80120728bdfb23ca1ff70fd.zip |
Further fixes some issues for #3621.
Review by Rytz.
Diffstat (limited to 'test/files/neg/varargs.check')
-rw-r--r-- | test/files/neg/varargs.check | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test/files/neg/varargs.check b/test/files/neg/varargs.check index f3254708b8..1352dd968c 100644 --- a/test/files/neg/varargs.check +++ b/test/files/neg/varargs.check @@ -1,7 +1,10 @@ -varargs.scala:11: error: A method without repeated parameters cannot be annotated with the `varargs` annotation. +varargs.scala:16: 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 v1(a: Int, b: String*) = a + b.length + ^ +varargs.scala:19: 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.scala:21: 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
\ No newline at end of file +three errors found
\ No newline at end of file |