summaryrefslogtreecommitdiff
path: root/test/files/neg/unchecked3.check
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/neg/unchecked3.check
parent9d423c9bb76dddcd080d98f4a05c02856708fc06 (diff)
downloadscala-9904301752c2aa8c8509f1bcd6108f626220524a.tar.gz
scala-9904301752c2aa8c8509f1bcd6108f626220524a.tar.bz2
scala-9904301752c2aa8c8509f1bcd6108f626220524a.zip
Additional new tests for unchecked warnings.
Diffstat (limited to 'test/files/neg/unchecked3.check')
-rw-r--r--test/files/neg/unchecked3.check13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/files/neg/unchecked3.check b/test/files/neg/unchecked3.check
new file mode 100644
index 0000000000..f2905124f2
--- /dev/null
+++ b/test/files/neg/unchecked3.check
@@ -0,0 +1,13 @@
+unchecked3.scala:24: error: non-variable type argument Double in type pattern E1[Double] is unchecked since it is eliminated by erasure
+ /* warn */ def peerTypes2(x: B1[Int]) = x match { case _: E1[Double] => true }
+ ^
+unchecked3.scala:25: error: non-variable type argument Double in type pattern F1[Double] is unchecked since it is eliminated by erasure
+ /* warn */ def peerTypes3(x: B1[_]) = x match { case _: F1[Double] => true }
+ ^
+unchecked3.scala:28: error: non-variable type argument Int in type pattern A2[Int] is unchecked since it is eliminated by erasure
+ /* warn */ def twotypes1[T](x: B2[T, Int]) = x match { case _: A2[Int] => true }
+ ^
+unchecked3.scala:32: error: non-variable type argument Int in type pattern B2[_,Int] is unchecked since it is eliminated by erasure
+ /* warn */ def twotypes5[T](x: A2[T]) = x match { case _: B2[_, Int] => true }
+ ^
+four errors found