diff options
author | Paul Phillips <paulp@improving.org> | 2012-09-25 18:14:49 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-09-25 18:21:42 -0700 |
commit | 9904301752c2aa8c8509f1bcd6108f626220524a (patch) | |
tree | 2c970440d0cd6e070f3d0ae1ffd961020330755a /test/files/pos | |
parent | 9d423c9bb76dddcd080d98f4a05c02856708fc06 (diff) | |
download | scala-9904301752c2aa8c8509f1bcd6108f626220524a.tar.gz scala-9904301752c2aa8c8509f1bcd6108f626220524a.tar.bz2 scala-9904301752c2aa8c8509f1bcd6108f626220524a.zip |
Additional new tests for unchecked warnings.
Diffstat (limited to 'test/files/pos')
-rw-r--r-- | test/files/pos/t6275.flags | 1 | ||||
-rw-r--r-- | test/files/pos/t6275.scala | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/test/files/pos/t6275.flags b/test/files/pos/t6275.flags new file mode 100644 index 0000000000..85d8eb2ba2 --- /dev/null +++ b/test/files/pos/t6275.flags @@ -0,0 +1 @@ +-Xfatal-warnings 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 } +} |