summaryrefslogtreecommitdiff
path: root/test/files/pos/t482.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/t482.scala')
-rw-r--r--test/files/pos/t482.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/pos/t482.scala b/test/files/pos/t482.scala
new file mode 100644
index 0000000000..b121c93337
--- /dev/null
+++ b/test/files/pos/t482.scala
@@ -0,0 +1,7 @@
+object Test {
+ class Foo { val z = "foo"; val y : z.type = z }
+
+ val x : ({ val y : z.type } forSome { val z : String }) = new Foo
+
+ val x2 : ({ val y : T } forSome { type T <: String with Singleton }) = new Foo
+}