Skip to content

Commit 8ff2615

Browse files
committed
Update test so that it still fails when level checking is on
1 parent 1e92b31 commit 8ff2615

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/pos/i14494.scala

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
object ImplNotFound:
2+
class TOP
3+
class STR(s: String) extends TOP
4+
class INT(i: Int) extends TOP
25
def main(args: Array[String]): Unit =
3-
val res: Seq[String | Int] = (??? : Seq[Int]).collect {
4-
case 1 => Seq("")
5-
case 2 => Seq(1)
6+
val res: Seq[STR | INT] = (??? : Seq[Int]).collect {
7+
case 1 => Seq(STR(""))
8+
case 2 => Seq(INT(1))
69
}.flatten

0 commit comments

Comments
 (0)