Skip to content

Commit 8d36681

Browse files
committed
test
1 parent a9c214f commit 8d36681

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/pos/i23666.scala

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
type Tuple = scala.Tuple
3+
type Any = scala.Any
4+
5+
infix type =:= [A, B] = A => B
6+
7+
object `=:=` :
8+
given [A] => A =:= A = a => a
9+
10+
extension [T <: Tuple] (tuple: T)
11+
12+
def reverse[A, B](using ev: T =:= (A, B)): (B, A) =
13+
val ab = ev(tuple)
14+
(ab._2, ab._1)

0 commit comments

Comments
 (0)