Skip to content

Commit 35801a1

Browse files
committed
Fix exhaustivity checks
1 parent b8155d8 commit 35801a1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

compiler/test/dotty/tools/dotc/transform/PatmatExhaustivityTest.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import org.junit.Test
1818
class PatmatExhaustivityTest {
1919
val testsDir = "tests/patmat"
2020
// stop-after: patmatexhaust-huge.scala crash compiler
21-
val options = List("-color:never", "-Ystop-after:crossCast", "-Ycheck-all-patmat", "-classpath", TestConfiguration.basicClasspath)
21+
val options = List("-color:never", "-Ystop-after:explicitSelf", "-Ycheck-all-patmat", "-classpath", TestConfiguration.basicClasspath)
2222

2323
private def compile(files: Seq[String]): Seq[String] = {
2424
val stringBuffer = new StringWriter()

tests/patmat/i4030.scala

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ object TestGADT {
99
def f[A <: Seq[_], B, Foo >: A => B](v: Root[Foo], u: Root[Foo]) = (v, u) match {
1010
case (C3(), C3()) =>
1111
}
12-
f(C3[Seq[_], Long](), C4[Seq[_], Long]())
12+
// The following line no longer type checks
13+
// f(C3[Seq[_], Long](), C4[Seq[_], Long]())
1314
}

0 commit comments

Comments
 (0)