diff options
author | Grzegorz Kossakowski <grzegorz.kossakowski@gmail.com> | 2012-10-02 09:03:00 -0700 |
---|---|---|
committer | Grzegorz Kossakowski <grzegorz.kossakowski@gmail.com> | 2012-10-02 09:03:00 -0700 |
commit | 5dae38df7d8929a4666c9263cc78579bed972ac2 (patch) | |
tree | 4abc99a579fe9977950ef3ed8d7bc84d3cb971a3 /test/files/neg/unchecked-impossible.check | |
parent | e93ca3231798241baf0f48ad361c0aa9668ee871 (diff) | |
parent | 81226b82d8c8b138eabb6956cab82410a17d812c (diff) | |
download | scala-5dae38df7d8929a4666c9263cc78579bed972ac2.tar.gz scala-5dae38df7d8929a4666c9263cc78579bed972ac2.tar.bz2 scala-5dae38df7d8929a4666c9263cc78579bed972ac2.zip |
Merge pull request #1437 from paulp/typevar-suspension
Typevar suspension
Diffstat (limited to 'test/files/neg/unchecked-impossible.check')
-rw-r--r-- | test/files/neg/unchecked-impossible.check | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/files/neg/unchecked-impossible.check b/test/files/neg/unchecked-impossible.check index 75fc390fa8..d150a5a853 100644 --- a/test/files/neg/unchecked-impossible.check +++ b/test/files/neg/unchecked-impossible.check @@ -1,6 +1,10 @@ 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. +unchecked-impossible.scala:5: error: pattern type is incompatible with expected type; + found : Seq[A] + required: T2[Int,Int] + case Seq(x) => + ^ one warning found one error found |