Skip to content

Commit c698eb1

Browse files
committed
Make match exhaustive for bootstrapping
1 parent bcd4754 commit c698eb1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

compiler/test/dotty/tools/CheckTypeTest.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package dotty.tools
22

33
import org.junit.Test
4-
import org.junit.Assert.{ assertFalse, assertTrue }
4+
import org.junit.Assert.{ assertFalse, assertTrue, fail }
55

66
import dotc.ast.Trees._
77
import dotc.core.Decorators._
@@ -35,6 +35,8 @@ class CheckTypeTest extends DottyTest {
3535
assertTrue (ls <:< lr)
3636
assertTrue (lb <:< la)
3737
assertFalse (la <:< lb)
38+
39+
case _ => fail
3840
}
3941
}
4042
}

0 commit comments

Comments
 (0)