summaryrefslogtreecommitdiff
path: root/test/files/neg/t7294.check
blob: a308f2457d4b0d140cb5c6a1703ba3e86ab8b076 (plain) (blame)
1
2
3
4
5
6
7
8
9
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 }
                         ^
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