diff options
Diffstat (limited to 'test/files/neg/bug875.check')
-rw-r--r-- | test/files/neg/bug875.check | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/test/files/neg/bug875.check b/test/files/neg/bug875.check index 63ad0f7eb0..d547c8d69c 100644 --- a/test/files/neg/bug875.check +++ b/test/files/neg/bug875.check @@ -1,13 +1,17 @@ -bug875.scala:3: error: _*-argument may not appear after other arguments matching a *-parameter +bug875.scala:3: error: no `: _*' annotation allowed here +(such annotations are only allowed in arguments to *-parameters) val ys = List(1, 2, 3, xs: _*) ^ -bug875.scala:6: error: _*-argument does not correspond to *-parameter +bug875.scala:6: error: no `: _*' annotation allowed here +(such annotations are only allowed in arguments to *-parameters) mkList(xs: _*) ^ -bug875.scala:15: error: _*-argument may not appear after other arguments matching a *-parameter +bug875.scala:15: error: no `: _*' annotation allowed here +(such annotations are only allowed in arguments to *-parameters) f(true, 1, xs: _*) ^ -bug875.scala:16: error: _*-argument may not appear after other arguments matching a *-parameter +bug875.scala:16: error: no `: _*' annotation allowed here +(such annotations are only allowed in arguments to *-parameters) g(1, xs:_*) ^ four errors found |