Skip to content

Commit f65f8b3

Browse files
committed
More escaping of "extension"
1 parent cfc9058 commit f65f8b3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/test/dotty/tools/dotc/transform/PatmatExhaustivityTest.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class PatmatExhaustivityTest {
4545
val reporter = TestReporter.simplifiedReporter(new PrintWriter(stringBuffer))
4646

4747
val files = Directory(path).list.toList
48-
.filter(f => f.extension == "scala" || f.extension == "java" )
48+
.filter(f => f.`extension` == "scala" || f.`extension` == "java" )
4949
.map(_.jpath.toString)
5050

5151
try {
@@ -69,7 +69,7 @@ class PatmatExhaustivityTest {
6969
@Test
7070
def patmatExhaustivity: Unit = {
7171
val res = Directory(testsDir).list.toList
72-
.filter(f => f.extension == "scala" || f.isDirectory)
72+
.filter(f => f.`extension` == "scala" || f.isDirectory)
7373
.map { f =>
7474
if (f.isDirectory)
7575
compileDir(f.jpath)
@@ -78,7 +78,7 @@ class PatmatExhaustivityTest {
7878
}
7979

8080
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")
8282

8383
failed.foreach { case (file, expected, actual) =>
8484
println(s"\n----------------- incorrect output for $file --------------\n" +

0 commit comments

Comments
 (0)