diff options
Diffstat (limited to 'tests/untried/neg/t5761.check')
-rw-r--r-- | tests/untried/neg/t5761.check | 19 |
1 files changed, 19 insertions, 0 deletions
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 |