Skip to content

Commit d3da968

Browse files
committed
Re-add test that will pass when scala#22340 is merged
1 parent 1a5a8b3 commit d3da968

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)