Skip to content

Commit 8a9e89a

Browse files
committed
Allow deep subtype for sets and related code in dotty/transform.
The change in subtyping led to a deep subtype recursion for sets.scala. It seems legit, so the -Yno-deep-subtypes check is disabled.
1 parent 95098ba commit 8a9e89a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

test/dotc/tests.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ class tests extends CompilerTest {
100100

101101
@Test def pos_all = compileFiles(posDir) // twice omitted to make tests run faster
102102

103+
@Test def pos_sets = compileFile(posSpecialDir, "sets")(allowDeepSubtypes)
103104
@Test def pos_t2613 = compileFile(posSpecialDir, "t2613")(allowDeepSubtypes)
104105
@Test def pos_i871 = compileFile(posSpecialDir, "i871", scala2mode)
105106
@Test def pos_variancesConstr = compileFile(posSpecialDir, "variances-constr", scala2mode)
@@ -182,7 +183,7 @@ class tests extends CompilerTest {
182183
.toList
183184

184185
@Test def compileStdLib = compileList("compileStdLib", stdlibFiles, "-migration" :: scala2mode)
185-
@Test def dotty = compileDir(dottyDir, ".", "-deep" :: "-Ycheck-reentrant" :: allowDeepSubtypes) // note the -deep argument
186+
@Test def dotty = compileDir(dottyDir, ".", List("-deep", "-Ycheck-reentrant"))(allowDeepSubtypes) // note the -deep argument
186187

187188
@Test def dotc_ast = compileDir(dotcDir, "ast")
188189
@Test def dotc_config = compileDir(dotcDir, "config")
@@ -191,7 +192,7 @@ class tests extends CompilerTest {
191192
// This directory doesn't exist anymore
192193
// @Test def dotc_core_pickling = compileDir(coreDir, "pickling")(allowDeepSubtypes)// twice omitted to make tests run faster
193194

194-
@Test def dotc_transform = compileDir(dotcDir, "transform")// twice omitted to make tests run faster
195+
@Test def dotc_transform = compileDir(dotcDir, "transform")(allowDeepSubtypes)// twice omitted to make tests run faster
195196

196197
@Test def dotc_parsing = compileDir(dotcDir, "parsing") // twice omitted to make tests run faster
197198

File renamed without changes.

0 commit comments

Comments
 (0)