Skip to content

Commit a7b23d6

Browse files
committed
Move test to warn
1 parent 67024a9 commit a7b23d6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/neg/i22051.scala renamed to tests/warn/i22051.scala

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
//> using options -Werror
2-
31
def boundary[T](body: (T => RuntimeException) => T): T =
42
case class Break(value: T) extends RuntimeException
53
try body(Break.apply)
6-
catch case Break(t) => t // error: pattern matching on local classes is unsound currently
4+
catch case Break(t) => t // warn: pattern matching on local classes is unsound currently
75

86
def test =
97
boundary[Int]: EInt =>
@@ -16,4 +14,4 @@ def boundaryCorrectBehaviour[T](body: (T => RuntimeException) => T): T =
1614
// A correct implementation, but is still treated as a local class right now
1715
case class Break(value: T) extends RuntimeException
1816
try body(local.Break.apply)
19-
catch case local.Break(t) => t // error
17+
catch case local.Break(t) => t // warn

0 commit comments

Comments
 (0)