Skip to content

Commit 63ec012

Browse files
committed
Disable Ycheck for i24547
1 parent ee89e58 commit 63ec012

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ class CompilationTests {
4141
compileFile("tests/pos-special/utf8encoded.scala", defaultOptions.and("-encoding", "UTF8")),
4242
compileFile("tests/pos-special/utf16encoded.scala", defaultOptions.and("-encoding", "UTF16")),
4343
compileDir("tests/pos-special/i18589", defaultOptions.and("-Wsafe-init").without("-Ycheck:all")),
44+
compileDir("tests/pos-special/i24547", defaultOptions.without("-Ycheck:all")),
4445
// Run tests for legacy lazy vals
4546
compileFilesInDir("tests/pos", defaultOptions.and("-Wsafe-init", "-Ylegacy-lazy-vals", "-Ycheck-constraint-deps"), FileFilter.include(TestSources.posLazyValsAllowlist)),
4647
compileDir("tests/pos-special/java-param-names", defaultOptions.withJavacOnlyOptions("-parameters")),

tests/pos-macros/i24547/ReproTest_2.scala renamed to tests/pos-special/i24547/ReproTest_2.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// Test case: abstract type parameter Coll[Int] with @retains annotation
33
// causes "not a legal path" error when macro creates new ValDef
44

5+
// TODO: there are some other issues with this test case, so it is currently disabled
6+
// for `Ycheck:all`. We should move it back to `pos-macro` once those issues are fixed.
7+
58
import scala.collection.IterableOps
69

710
def reproTest[Coll[X] <: Iterable[X] & IterableOps[X, Coll, Coll[X]]]: Unit =

0 commit comments

Comments
 (0)