Skip to content

Commit dc09bf2

Browse files
committed
Add test case for scala#1612
1 parent 3c8461e commit dc09bf2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/neg/i3332.scala

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,11 @@ object Main {
77
}
88
}
99
}
10+
11+
// #1612
12+
object Test {
13+
def g(p:(Int,Int)) = p match {
14+
case (10,n) | (n,10) => println(n) // error // error (Illegal variable in pattern alternative)
15+
case _ => println("nope")
16+
}
17+
}

0 commit comments

Comments
 (0)