aboutsummaryrefslogtreecommitdiff
path: root/tests/neg/singletons.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/neg/singletons.scala')
-rw-r--r--tests/neg/singletons.scala4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/neg/singletons.scala b/tests/neg/singletons.scala
index 3bf7ee050..e4c6db060 100644
--- a/tests/neg/singletons.scala
+++ b/tests/neg/singletons.scala
@@ -2,4 +2,8 @@ object Test {
val a: 42 = 43 // error: different constant
val x = 42
val z: 42 = x // error: x is not final
+
+ val n: null = null // error: Null is not a legal singleton type
+
+ val sym: 'sym = 'sym // error: Symbol is a legal singleton type
}