Skip to content

Commit 2bada90

Browse files
committed
Only enable -Ykind-projector for relevant tests
1 parent 6a18b1a commit 2bada90

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ class CompilationTests extends ParallelTesting {
6060
compileFile("tests/pos-special/notNull.scala", defaultOptions.and("-Yexplicit-nulls")),
6161
compileDir("tests/pos-special/adhoc-extension", defaultOptions.and("-strict", "-feature", "-Xfatal-warnings")),
6262
compileFile("tests/pos-special/i7575.scala", defaultOptions.and("-language:dynamics")),
63+
compileFile("tests/pos-special/kind-projector.scala", defaultOptions.and("-Ykind-projector")),
6364
).checkCompile()
6465
}
6566

@@ -148,6 +149,7 @@ class CompilationTests extends ParallelTesting {
148149
compileFile("tests/neg-custom-args/extmethods-tparams.scala", defaultOptions.and("-deprecation", "-Xfatal-warnings")),
149150
compileDir("tests/neg-custom-args/adhoc-extension", defaultOptions.and("-strict", "-feature", "-Xfatal-warnings")),
150151
compileFile("tests/neg/i7575.scala", defaultOptions.and("-language:_")),
152+
compileFile("tests/neg-custom-args/kind-projector.scala", defaultOptions.and("-Ykind-projector")),
151153
).checkExpectedErrors()
152154
}
153155

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ object TestConfiguration {
1616
"-Yno-deep-subtypes",
1717
"-Yno-double-bindings",
1818
"-Yforce-sbt-phases",
19-
"-Xverify-signatures",
20-
"-Ykind-projector"
19+
"-Xverify-signatures"
2120
)
2221

2322
val basicClasspath = mkClasspath(List(
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
-- Error: tests/neg/kind-projector.scala:7:23 --------------------------------------------------------------------------
1+
-- Error: tests/neg-custom-args/kind-projector.scala:7:23 --------------------------------------------------------------
22
7 |class Bar3 extends Foo[λ[List[x] => Int]] // error
33
| ^^^^^^^^^^^^^^^^^
44
| λ requires a single argument of the form X => ... or (X, Y) => ...
5-
-- Error: tests/neg/kind-projector.scala:5:23 --------------------------------------------------------------------------
5+
-- Error: tests/neg-custom-args/kind-projector.scala:5:23 --------------------------------------------------------------
66
5 |class Bar1 extends Foo[Either[*, *]] // error
77
| ^^^^^^^^^^^^
88
| Type argument Either has not the same kind as its bound <: [_$1] => Any
9-
-- Error: tests/neg/kind-projector.scala:6:22 --------------------------------------------------------------------------
9+
-- Error: tests/neg-custom-args/kind-projector.scala:6:22 --------------------------------------------------------------
1010
6 |class Bar2 extends Foo[*] // error
1111
| ^
1212
| Type argument X0 has not the same kind as its bound <: [_$1] => Any

0 commit comments

Comments
 (0)