Skip to content

Commit ee09896

Browse files
committed
add test case
1 parent 870885f commit ee09896

File tree

1 file changed

+7
-0
lines changed
  • compiler/test-resources/repl

1 file changed

+7
-0
lines changed

compiler/test-resources/repl/i4217

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
scala> def foo(x: Option[Int]) = x match { case None => }
2+
1 |def foo(x: Option[Int]) = x match { case None => }
3+
| ^
4+
| match may not be exhaustive.
5+
|
6+
| It would fail on pattern case: Some(_)
7+
def foo(x: Option[Int]): Unit

0 commit comments

Comments
 (0)