summaryrefslogtreecommitdiff
path: root/test/files/pos/bug1189.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/bug1189.scala')
-rw-r--r--test/files/pos/bug1189.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/pos/bug1189.scala b/test/files/pos/bug1189.scala
new file mode 100644
index 0000000000..97d2e4488c
--- /dev/null
+++ b/test/files/pos/bug1189.scala
@@ -0,0 +1,8 @@
+object test extends Application {
+ case class Cell[T](x: T)
+ type U = Cell[T1] forSome { type T1 }
+ def f[T](x: Any): U = x match { case y: Cell[_] => y }
+
+ var x: U = Cell(1)
+ println(x)
+}