diff options
author | Lukas Rytz <lukas.rytz@typesafe.com> | 2016-07-20 16:41:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-20 16:41:40 +0200 |
commit | 5ddb0bbe36e7caa44c9442b059d103f7f4e75331 (patch) | |
tree | 8fe2193790978f66af5e95055e3bf6ac97af307b /test/files/neg/t7294.check | |
parent | 2f75e051a181d4f8618746953ec07226b556fdb3 (diff) | |
parent | cd9240ed524e69f01fcd872b9791754102c6530b (diff) | |
download | scala-5ddb0bbe36e7caa44c9442b059d103f7f4e75331.tar.gz scala-5ddb0bbe36e7caa44c9442b059d103f7f4e75331.tar.bz2 scala-5ddb0bbe36e7caa44c9442b059d103f7f4e75331.zip |
Merge pull request #5257 from szeiger/wip/final-tuples
SI-7301 Make tuple classes final
Diffstat (limited to 'test/files/neg/t7294.check')
-rw-r--r-- | test/files/neg/t7294.check | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/files/neg/t7294.check b/test/files/neg/t7294.check index f15289c1c0..a308f2457d 100644 --- a/test/files/neg/t7294.check +++ b/test/files/neg/t7294.check @@ -1,6 +1,10 @@ t7294.scala:4: warning: fruitless type test: a value of type (Int, Int) cannot also be a Seq[A] (1, 2) match { case Seq() => 0; case _ => 1 } ^ -error: No warnings can be incurred under -Xfatal-warnings. +t7294.scala:4: error: pattern type is incompatible with expected type; + found : Seq[A] + required: (Int, Int) + (1, 2) match { case Seq() => 0; case _ => 1 } + ^ one warning found one error found |