From e0cbe1cb6781d4a06108a95a047209bfc95cd915 Mon Sep 17 00:00:00 2001 From: aherlihy Date: Fri, 10 Jan 2025 17:10:38 -0500 Subject: [PATCH] Re-add test that will pass when #22340 is merged --- tests/run/i22150.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/run/i22150.scala b/tests/run/i22150.scala index 7c89b1de57c5..80c2222a98e7 100644 --- a/tests/run/i22150.scala +++ b/tests/run/i22150.scala @@ -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