File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
compiler/src/dotty/tools/dotc/fromtasty Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -35,11 +35,11 @@ object Debug {
3535
3636 val fromTastyOut = Files .createDirectory(tmpOut.resolve(" from-tasty" ))
3737
38- val ext = " hasTasty"
39- val classes = Directory (fromSourcesOut).walk.filter(x => x.isFile && x.extension == ext ).map { x =>
38+ val extensions = List ( " tasty " , " hasTasty" ).map(_.toLowerCase)
39+ val classes = Directory (fromSourcesOut).walk.filter(x => x.isFile && extensions.exists(_ == x.extension.toLowerCase) ).map { x =>
4040 val source = x.toString
4141 // transform foo/bar/Baz.hasTasty into foo.bar.Baz
42- source.substring(fromSourcesOut.toString.length + 1 , source.length - ext .length - 1 ).replace('/' , '.' )
42+ source.substring(fromSourcesOut.toString.length + 1 , source.length - x.extension .length - 1 ).replace('/' , '.' )
4343 }.toList
4444
4545 val fromTastyArgs = {
You can’t perform that action at this time.
0 commit comments