Skip to content

Commit

Permalink
Re-add test that will pass when #22340 is merged
Browse files Browse the repository at this point in the history
  • Loading branch information
aherlihy committed Jan 10, 2025
1 parent 1a5a8b3 commit d3da968
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/run/i22150.scala
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ val directionsNT = IArray(
val IArray(UpNT @ _, _, _, _) = directionsNT

object NT:
// 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?
// tup.x
def foo[T <: (x: Int, y: String)](tup: T): Int =
tup.x

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

0 comments on commit d3da968

Please sign in to comment.