aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t1208.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pos/t1208.scala')
-rw-r--r--tests/pos/t1208.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/pos/t1208.scala b/tests/pos/t1208.scala
new file mode 100644
index 000000000..7b14aadca
--- /dev/null
+++ b/tests/pos/t1208.scala
@@ -0,0 +1,7 @@
+object Test {
+ object Foo
+ val f: Option[Foo.type] = Some(Foo)
+}
+
+// unsupported with current typing rules.
+// on the other hand, we need a way to refer to a module class.