Skip to content

Commit fa75f19

Browse files
committed
Fix scala#4372: Add regression test
Probably fixed by scala#4385
1 parent da1e196 commit fa75f19

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

compiler/test/dotty/tools/dotc/CompilationTests.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ class CompilationTests extends ParallelTesting {
164164
compileFile("tests/neg-custom-args/i3627.scala", allowDeepSubtypes) +
165165
compileFile("tests/neg-custom-args/matchtype-loop.scala", allowDeepSubtypes) +
166166
compileFile("tests/neg-custom-args/completeFromSource/nested/Test1.scala", defaultOptions.and("-sourcepath", "tests/neg-custom-args", "-scansource")) +
167+
compileFile("tests/neg-custom-args/i4372.scala", defaultOptions.without("-Yno-deep-subtypes")) +
167168
compileFile("tests/neg-custom-args/repeatedArgs213.scala", defaultOptions.and("-Ynew-collections"))
168169
}.checkExpectedErrors()
169170

tests/neg-custom-args/i4372.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
object i4372 {
2-
class X[A >: X[_ <: X[_]] <: X[A]] // error: too deep
3-
}
1+
class X[A >: X[_ <: X[_]] <: X[A]] // error

0 commit comments

Comments
 (0)