diff options
author | Martin Odersky <odersky@gmail.com> | 2007-07-23 18:22:29 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2007-07-23 18:22:29 +0000 |
commit | 16d3cf1f8f22c04559145b35bb5f6c0aacfb0d8c (patch) | |
tree | 75b5420467e9dae2ef88d6a4aca220b0f907fa2f /test/files/neg/bug875.check | |
parent | 2d3a640e0bff8c79f99c070cf33f9ef921642a18 (diff) | |
download | scala-16d3cf1f8f22c04559145b35bb5f6c0aacfb0d8c.tar.gz scala-16d3cf1f8f22c04559145b35bb5f6c0aacfb0d8c.tar.bz2 scala-16d3cf1f8f22c04559145b35bb5f6c0aacfb0d8c.zip |
many bug fixes; short syntax for structural types.
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 |