From 9ef5f6817688f814a3450126aa7383b0928e80a0 Mon Sep 17 00:00:00 2001 From: Samuel Gruetter Date: Wed, 12 Mar 2014 22:44:33 +0100 Subject: add tests from scala/test/files/{pos,neg} with explicit Unit return type --- tests/untried/neg/t5761.check | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tests/untried/neg/t5761.check (limited to 'tests/untried/neg/t5761.check') diff --git a/tests/untried/neg/t5761.check b/tests/untried/neg/t5761.check new file mode 100644 index 000000000..2d66af26f --- /dev/null +++ b/tests/untried/neg/t5761.check @@ -0,0 +1,19 @@ +t5761.scala:4: error: not enough arguments for constructor D: (x: Int)D[Int]. +Unspecified value parameter x. + println(new D[Int]{}) // crash + ^ +t5761.scala:8: error: not enough arguments for constructor D: (x: Int)D[Int]. +Unspecified value parameter x. + println(new D[Int]()) // no crash + ^ +t5761.scala:9: error: not enough arguments for constructor D: (x: Int)D[Int]. +Unspecified value parameter x. + println(new D[Int]{}) // crash + ^ +t5761.scala:13: error: not found: type Tread + new Tread("sth") { }.run() + ^ +t5761.scala:13: error: value run is not a member of AnyRef + new Tread("sth") { }.run() + ^ +5 errors found -- cgit v1.2.3