diff options
Diffstat (limited to 'tests/untried/neg/unit2anyref.check')
-rw-r--r-- | tests/untried/neg/unit2anyref.check | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/untried/neg/unit2anyref.check b/tests/untried/neg/unit2anyref.check new file mode 100644 index 000000000..6d1146170 --- /dev/null +++ b/tests/untried/neg/unit2anyref.check @@ -0,0 +1,6 @@ +unit2anyref.scala:2: error: type mismatch; + found : Unit + required: AnyRef + val x: AnyRef = () // this should not succeed. + ^ +one error found |