Skip to content

Commit 51adba9

Browse files
committed
Avoid warnings
1 parent 491b6b7 commit 51adba9

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

tests/pos/patmat-exhaustive.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//> using options -Xfatal-warnings -deprecation -feature
1+
//> using options -Werror -deprecation -feature
22

33
def foo: Unit =
44
object O:
@@ -8,5 +8,5 @@ def foo: Unit =
88

99
val x: O.A = ???
1010
x match
11-
case x: B => ???
12-
case x: C => ???
11+
case _: B => ???
12+
case _: C => ???
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
//> using options -Werror
21
class Proj { type State = String }
32

43
sealed trait ProjState:

0 commit comments

Comments
 (0)