aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/unit2anyref.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg/unit2anyref.scala')
-rw-r--r--tests/untried/neg/unit2anyref.scala3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/untried/neg/unit2anyref.scala b/tests/untried/neg/unit2anyref.scala
new file mode 100644
index 000000000..1e9cdbf78
--- /dev/null
+++ b/tests/untried/neg/unit2anyref.scala
@@ -0,0 +1,3 @@
+object Test {
+ val x: AnyRef = () // this should not succeed.
+}