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/neg/t5762.check | |
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/neg/t5762.check')
-rw-r--r-- | test/files/neg/t5762.check | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/files/neg/t5762.check b/test/files/neg/t5762.check new file mode 100644 index 0000000000..10064032aa --- /dev/null +++ b/test/files/neg/t5762.check @@ -0,0 +1,13 @@ +t5762.scala:6: error: non-variable type argument Int in type pattern D[Int] is unchecked since it is eliminated by erasure + case _: D[Int] if bippy => 1 + ^ +t5762.scala:7: error: non-variable type argument String in type pattern D[String] is unchecked since it is eliminated by erasure + case _: D[String] => 2 + ^ +t5762.scala:20: error: non-variable type argument D[Int] in type pattern D[D[Int]] is unchecked since it is eliminated by erasure + case _: D[D[Int]] if bippy => 1 + ^ +t5762.scala:21: error: non-variable type argument D[String] in type pattern D[D[String]] is unchecked since it is eliminated by erasure + case _: D[D[String]] => 2 + ^ +four errors found |