summaryrefslogtreecommitdiff
path: root/test/files/pos/t6275.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-09-25 18:14:49 -0700
committerPaul Phillips <paulp@improving.org>2012-09-25 18:21:42 -0700
commit9904301752c2aa8c8509f1bcd6108f626220524a (patch)
tree2c970440d0cd6e070f3d0ae1ffd961020330755a /test/files/pos/t6275.scala
parent9d423c9bb76dddcd080d98f4a05c02856708fc06 (diff)
downloadscala-9904301752c2aa8c8509f1bcd6108f626220524a.tar.gz
scala-9904301752c2aa8c8509f1bcd6108f626220524a.tar.bz2
scala-9904301752c2aa8c8509f1bcd6108f626220524a.zip
Additional new tests for unchecked warnings.
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 }
+}