Skip to content

Commit

Permalink
Avoid warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
som-snytt committed Jan 11, 2025
1 parent 491b6b7 commit 51adba9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tests/pos/patmat-exhaustive.scala
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//> using options -Xfatal-warnings -deprecation -feature
//> using options -Werror -deprecation -feature

def foo: Unit =
object O:
Expand All @@ -8,5 +8,5 @@ def foo: Unit =

val x: O.A = ???
x match
case x: B => ???
case x: C => ???
case _: B => ???
case _: C => ???
1 change: 0 additions & 1 deletion tests/pos/i15226.scala → tests/warn/i15226.scala
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
//> using options -Werror
class Proj { type State = String }

sealed trait ProjState:
Expand Down

0 comments on commit 51adba9

Please sign in to comment.