aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/t5696.check
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg/t5696.check')
-rw-r--r--tests/untried/neg/t5696.check19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/untried/neg/t5696.check b/tests/untried/neg/t5696.check
new file mode 100644
index 000000000..e0fb61b83
--- /dev/null
+++ b/tests/untried/neg/t5696.check
@@ -0,0 +1,19 @@
+t5696.scala:6: error: too many argument lists for constructor invocation
+ new G(1)(2) {}
+ ^
+t5696.scala:14: error: too many argument lists for constructor invocation
+ new G()(2) {}
+ ^
+t5696.scala:22: error: too many argument lists for constructor invocation
+ new G[Int]()(2) {}
+ ^
+t5696.scala:30: error: too many argument lists for constructor invocation
+ new G[Int]()(2)(3) {}
+ ^
+t5696.scala:38: error: too many argument lists for constructor invocation
+ new G[Int]()()(2) {}
+ ^
+t5696.scala:46: error: too many argument lists for constructor invocation
+ object x extends G(1)(2) {}
+ ^
+6 errors found