Skip to content

Commit fb3cc68

Browse files
committed
Regression test for minimized ticket
1 parent c38f671 commit fb3cc68

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/warn/i22727.scala

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
//> using options -Werror
3+
4+
object Main {
5+
type IXY = (Int, Int)
6+
7+
extension (xy: IXY) {
8+
def map(f: Int => Int): (Int, Int) = (f(xy._1), f(xy._2))
9+
}
10+
11+
def main(args: Array[String]): Unit = {
12+
val a = (0, 1)
13+
println(a)
14+
}
15+
}

0 commit comments

Comments
 (0)