summaryrefslogtreecommitdiff
path: root/test/files/pos/t6275.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/t6275.scala')
-rw-r--r--test/files/pos/t6275.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/pos/t6275.scala b/test/files/pos/t6275.scala
new file mode 100644
index 0000000000..6b5ec7dceb
--- /dev/null
+++ b/test/files/pos/t6275.scala
@@ -0,0 +1,11 @@
+
+sealed trait A[T]
+final class B[T] extends A[T]
+
+object ParsedAxis {
+ type BI = B[Int]
+
+ def f1(a: A[Int]) = a match { case b: B[Int] => 3 }
+ def f2(a: A[Int]) = a match { case b: BI => 3 }
+ def f3(a: A[Int]) = a match { case b: B[t] => 3 }
+}