From 9904301752c2aa8c8509f1bcd6108f626220524a Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Tue, 25 Sep 2012 18:14:49 -0700 Subject: Additional new tests for unchecked warnings. --- test/files/pos/t6275.flags | 1 + test/files/pos/t6275.scala | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 test/files/pos/t6275.flags create mode 100644 test/files/pos/t6275.scala (limited to 'test/files/pos') 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 } +} -- cgit v1.2.3