diff options
Diffstat (limited to 'test/files/neg/bug835.check')
-rw-r--r-- | test/files/neg/bug835.check | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/files/neg/bug835.check b/test/files/neg/bug835.check index 83db589280..79ea97b71f 100644 --- a/test/files/neg/bug835.check +++ b/test/files/neg/bug835.check @@ -1,4 +1,9 @@ -bug835.scala:2: error: _*-argument may not appear after other arguments matching a *-parameter +bug835.scala:2: error: no `: _*' annotation allowed here +(such annotations are only allowed in arguments to *-parameters) + Console.println(List(List(1, 2, 3) : _*, List(4, 5, 6) : _*)) + ^ +bug835.scala:2: error: no `: _*' annotation allowed here +(such annotations are only allowed in arguments to *-parameters) Console.println(List(List(1, 2, 3) : _*, List(4, 5, 6) : _*)) ^ -one error found +two errors found |