diff options
Diffstat (limited to 'test/files/neg/unchecked-impossible.check')
-rw-r--r-- | test/files/neg/unchecked-impossible.check | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/neg/unchecked-impossible.check b/test/files/neg/unchecked-impossible.check new file mode 100644 index 0000000000..75fc390fa8 --- /dev/null +++ b/test/files/neg/unchecked-impossible.check @@ -0,0 +1,6 @@ +unchecked-impossible.scala:5: warning: fruitless type test: a value of type T2[Int,Int] cannot also be a Seq[A] + case Seq(x) => + ^ +error: No warnings can be incurred under -Xfatal-warnings. +one warning found +one error found |