Skip to content

Commit 84f6d88

Browse files
committed
Survive files that are not SFiles in CompilerTest
I observed in a local partest a file with was a java.io.Path, not an SFile. They should be treated like SFiles. Not clear why this came up. The file in question (partest-generated/pos/Patterns_v1.scala) looked just like all the others that were read as SFiles.
1 parent b54e2a1 commit 84f6d88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test/CompilerTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,8 @@ abstract class CompilerTest extends DottyTest {
221221
case ExistsSame => // nothing else to do
222222
case ExistsDifferent =>
223223
val nextDest = dest.parent / (dest match {
224-
case f: SFile => SFile(replaceVersion(f.stripExtension, nr)).addExtension(f.extension)
225224
case d: Directory => Directory(replaceVersion(d.name, nr))
225+
case f => SFile(replaceVersion(f.stripExtension, nr)).addExtension(f.extension)
226226
})
227227
computeDestAndCopyFiles(source, nextDest, kind, flags, nerr, nr + 1, partestOutput)
228228
}

0 commit comments

Comments
 (0)