summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
Diffstat (limited to 'test/files')
-rwxr-xr-xtest/files/pos/t1560.scala13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/files/pos/t1560.scala b/test/files/pos/t1560.scala
new file mode 100755
index 0000000000..49cdaaed6a
--- /dev/null
+++ b/test/files/pos/t1560.scala
@@ -0,0 +1,13 @@
+object Test extends Application {
+
+ trait C[T] {
+ def t: T
+ }
+
+ def b: Option[C[x] forSome { type x }] = null
+
+ def c = b match {
+ case Some(b) => b.t
+ }
+
+}