Skip to content

Commit a987fd6

Browse files
committed
Update test code
Avoid exhaustivity check warning
1 parent f702b05 commit a987fd6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/neg-custom-args/isInstanceOf/i8932.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ class Dummy extends Bar[Nothing] with Foo[String]
66
def bugReport[A](foo: Foo[A]): Foo[A] =
77
foo match {
88
case bar: Bar[A] => bar // error
9+
case dummy: Dummy => ???
910
}
1011

1112
def test = bugReport(new Dummy: Foo[String])

0 commit comments

Comments
 (0)