Skip to content

Commit 3cc6559

Browse files
committed
Fix test
1 parent 92dfdf7 commit 3cc6559

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/neg/i3332.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
object Main {
22
def main(args: Array[String]): Unit = {
33
(1: Any) match {
4-
case x: String | Int => "OK"
4+
case x: String | Int => "OK" // error: Illegal variable in pattern alternative
55
case (_: String) | (_: Int) => "OK"
66
case (s: String) | _: Int => s // error: Illegal variable in pattern alternative
77
}

0 commit comments

Comments
 (0)