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.scala2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/neg/singletons.scala b/tests/neg/singletons.scala
index e4c6db060..5dff13096 100644
--- a/tests/neg/singletons.scala
+++ b/tests/neg/singletons.scala
@@ -6,4 +6,6 @@ object Test {
val n: null = null // error: Null is not a legal singleton type
val sym: 'sym = 'sym // error: Symbol is a legal singleton type
+
+ val foo: s"abc" = "abc" // error: not a legal singleton type
}