Skip to content

Commit 0696aec

Browse files
committed
move test to patmat
1 parent e8e5210 commit 0696aec

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
8: Pattern Match Exhaustivity: Bar()

tests/warn/patmat-lazy-nothing-not-exhaustive.scala renamed to tests/patmat/patmat-lazy-nothing-not-exhaustive.scala

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ case class Bar() extends Adt {
44
lazy val x: Nothing = throw new Exception()
55
}
66

7-
inline def id[A](a: A): A = a
8-
97
def shouldThrowAWarning(x: Adt) =
10-
id(x match { // warn
11-
case Foo() => "Bar"
12-
})
8+
x match { // warn
9+
case Foo() => "Foo"
10+
}

tests/warn/patmat-lazy-nothing-not-exhaustive.check

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)