Skip to content

Commit ba2b678

Browse files
committed
Fix test
We need to adapt the test, otherwise the exhaustivity warning, which comes before, will stop the compilation, the isInstanceOf warnings will not be issued.
1 parent aff3b08 commit ba2b678

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/neg-custom-args/isInstanceOf/enum-approx2.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ sealed trait Exp[T]
22
case class Fun[A, B](f: Exp[A => B]) extends Exp[A => B]
33

44
class Test {
5-
def eval[T](e: Exp[T]) = e match { // error
5+
def eval(e: Fun[Int, Int]) = e match {
66
case Fun(x: Fun[Int, Double]) => ??? // error
77
case Fun(x: Exp[Int => String]) => ??? // error
88
}

0 commit comments

Comments
 (0)