Skip to content

Commit aeaed68

Browse files
committed
Fix sourcepath testing
We were not testing some files previously, and one of the file did not actually typecheck.
1 parent c3ba62b commit aeaed68

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ class CompilationTests extends ParallelTesting {
3939
compileFile("tests/pos-scala2/rewrites.scala", scala2CompatMode.and("-rewrite")).copyToTarget(),
4040
compileFile("tests/pos-special/utf8encoded.scala", explicitUTF8),
4141
compileFile("tests/pos-special/utf16encoded.scala", explicitUTF16),
42-
compileFile("tests/pos-special/sourcepath/outer/Test.scala", defaultOptions.and("-sourcepath", "tests/pos-special/sourcepath")),
43-
compileFile("tests/pos-special/sourcepath/outer/Test2.scala", defaultOptions.and("-sourcepath", "tests/pos-special/sourcepath")),
44-
compileFile("tests/pos-special/sourcepath/outer/Test3.scala", defaultOptions.and("-sourcepath", "tests/pos-special/sourcepath")),
42+
compileFilesInDir("tests/pos-special/sourcepath/outer", defaultOptions.and("-sourcepath", "tests/pos-special/sourcepath")),
4543
compileFile("tests/pos-special/sourcepath/outer/nested/Test4.scala", defaultOptions.and("-sourcepath", "tests/pos-special/sourcepath")),
4644
compileFilesInDir("tests/pos-special/fatal-warnings", defaultOptions.and("-Xfatal-warnings", "-feature")),
4745
compileFilesInDir("tests/pos-special/spec-t5545", defaultOptions),
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package outer.nested
22

33

4-
case class B(x: Int) extends A(x)
4+
case class B(override val x: Int) extends A(x)
55

66
case class C(s: String) extends A(s.length)

0 commit comments

Comments
 (0)