diff options
Diffstat (limited to 'tests/untried/neg/t6675.scala')
-rw-r--r-- | tests/untried/neg/t6675.scala | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/untried/neg/t6675.scala b/tests/untried/neg/t6675.scala new file mode 100644 index 000000000..4d500b77b --- /dev/null +++ b/tests/untried/neg/t6675.scala @@ -0,0 +1,13 @@ +object X { + def unapply(s: String): Option[(Int,Int,Int)] = Some((1,2,3)) +} + +object Y { + def unapplySeq(s: String): Option[Seq[(Int,Int,Int)]] = Some(Seq((1,2,3))) +} + +object Test { + "" match { case X(b) => b } // should warn under -Xlint. Not an error because of SI-6111 + + "" match { case Y(b) => b } // no warning +} |