Skip to content

Commit de77ca0

Browse files
committed
Re-add test that will pass when #22340 is merged
1 parent bc8b830 commit de77ca0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: tests/run/i22150.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ val directionsNT = IArray(
1010
val IArray(UpNT @ _, _, _, _) = directionsNT
1111

1212
object NT:
13-
// def foo[T <: (x: Int, y: String)](tup: T): Int = // TODO 3: this fails with similar error to https://github.com/scala/scala3/issues/22324 not sure if related?
14-
// tup.x
13+
def foo[T <: (x: Int, y: String)](tup: T): Int =
14+
tup.x
1515

1616
def union[T](tup: (x: Int, y: String) | (x: Int, y: String)): Int =
1717
tup.x

0 commit comments

Comments
 (0)