aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/t835.check
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg/t835.check')
-rw-r--r--tests/untried/neg/t835.check9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/untried/neg/t835.check b/tests/untried/neg/t835.check
new file mode 100644
index 000000000..6ad18d302
--- /dev/null
+++ b/tests/untried/neg/t835.check
@@ -0,0 +1,9 @@
+t835.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) : _*))
+ ^
+t835.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) : _*))
+ ^
+two errors found