File tree 1 file changed +3
-3
lines changed
compiler/test/dotty/tools/dotc/transform
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ class PatmatExhaustivityTest {
45
45
val reporter = TestReporter .simplifiedReporter(new PrintWriter (stringBuffer))
46
46
47
47
val files = Directory (path).list.toList
48
- .filter(f => f.extension == " scala" || f.extension == " java" )
48
+ .filter(f => f.` extension` == " scala" || f.` extension` == " java" )
49
49
.map(_.jpath.toString)
50
50
51
51
try {
@@ -69,7 +69,7 @@ class PatmatExhaustivityTest {
69
69
@ Test
70
70
def patmatExhaustivity : Unit = {
71
71
val res = Directory (testsDir).list.toList
72
- .filter(f => f.extension == " scala" || f.isDirectory)
72
+ .filter(f => f.` extension` == " scala" || f.isDirectory)
73
73
.map { f =>
74
74
if (f.isDirectory)
75
75
compileDir(f.jpath)
@@ -78,7 +78,7 @@ class PatmatExhaustivityTest {
78
78
}
79
79
80
80
val failed = res.filter { case (_, expected, actual) => expected != actual }
81
- val ignored = Directory (testsDir).list.toList.filter(_.extension == " ignore" )
81
+ val ignored = Directory (testsDir).list.toList.filter(_.` extension` == " ignore" )
82
82
83
83
failed.foreach { case (file, expected, actual) =>
84
84
println(s " \n ----------------- incorrect output for $file -------------- \n " +
You can’t perform that action at this time.
0 commit comments