Skip to content

Commit f02eaf0

Browse files
committed
Add test
Run i3005 as a pos-sprecial test that does not do a Ycheck after arrayConstructors.
1 parent 4d2dadc commit f02eaf0

File tree

2 files changed

+4
-0
lines changed

2 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
@@ -56,6 +56,7 @@ class CompilationTests extends ParallelTesting {
5656
compileFile("../tests/pos-special/utf8encoded.scala", explicitUTF8) +
5757
compileFile("../tests/pos-special/utf16encoded.scala", explicitUTF16) +
5858
compileFile("../tests/pos-special/i3589-b.scala", defaultOptions.and("-Xfatal-warnings")) +
59+
compileFile("../tests/pos-special/i3005.scala", depByNameOptions) +
5960
compileList(
6061
"compileMixed",
6162
List(

compiler/test/dotty/tools/vulpix/TestConfiguration.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,7 @@ object TestConfiguration {
6262
val scala2Mode = defaultOptions and "-language:Scala2"
6363
val explicitUTF8 = defaultOptions and ("-encoding", "UTF8")
6464
val explicitUTF16 = defaultOptions and ("-encoding", "UTF16")
65+
66+
val depByNameOptions = // disable -Ycheck:arrayConstructors
67+
TestFlags(classPath, runClassPath, basicDefaultOptions.map(_.replace(",arrayConstructors", "")))
6568
}

0 commit comments

Comments
 (0)