diff options
author | Martin Odersky <odersky@gmail.com> | 2016-01-12 19:16:01 +0100 |
---|---|---|
committer | Guillaume Martres <smarter@ubuntu.com> | 2016-01-16 21:26:24 +0100 |
commit | a2c8000dcd5c50d088cbd7127449b08dd7cd34a2 (patch) | |
tree | a2ecbf37cc2559cc39db5da4801e09fd0eb1b2c1 | |
parent | 6e8fcde4ca389b816f841b7ffcf3b7dcb7db4468 (diff) | |
download | dotty-a2c8000dcd5c50d088cbd7127449b08dd7cd34a2.tar.gz dotty-a2c8000dcd5c50d088cbd7127449b08dd7cd34a2.tar.bz2 dotty-a2c8000dcd5c50d088cbd7127449b08dd7cd34a2.zip |
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.
-rw-r--r-- | test/test/CompilerTest.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test/CompilerTest.scala b/test/test/CompilerTest.scala index 09b608f22..c65710e7d 100644 --- a/test/test/CompilerTest.scala +++ b/test/test/CompilerTest.scala @@ -221,8 +221,8 @@ abstract class CompilerTest extends DottyTest { case ExistsSame => // nothing else to do case ExistsDifferent => val nextDest = dest.parent / (dest match { - case f: SFile => SFile(replaceVersion(f.stripExtension, nr)).addExtension(f.extension) case d: Directory => Directory(replaceVersion(d.name, nr)) + case f => SFile(replaceVersion(f.stripExtension, nr)).addExtension(f.extension) }) computeDestAndCopyFiles(source, nextDest, kind, flags, nerr, nr + 1, partestOutput) } |