From e83bcb3fc5cff4dab80120728bdfb23ca1ff70fd Mon Sep 17 00:00:00 2001 From: Aleksandar Pokopec Date: Thu, 25 Nov 2010 09:38:21 +0000 Subject: Further fixes some issues for #3621. Review by Rytz. --- test/files/neg/varargs.check | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'test/files/neg/varargs.check') 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 -- cgit v1.2.3