Skip to content

Commit a389a11

Browse files
committed
Add test
1 parent 8c4e45a commit a389a11

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import scala.language.`3.1-migration`
2+
3+
type X
4+
def x: X = ???
5+
def test: Unit =
6+
x match
7+
case y: X =>

tests/pos-special/fatal-warnings/type-test-matchable.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ object Test:
1111
def test(foo: Foo): Unit =
1212
foo.x match
1313
case x: foo.Y =>
14+
case x: foo.X =>

0 commit comments

Comments
 (0)