We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d5d7b5 commit 4abbef1Copy full SHA for 4abbef1
compiler/src/dotty/tools/dotc/interactive/InteractiveDriver.scala
@@ -86,11 +86,9 @@ class InteractiveDriver(settings: List[String]) extends Driver {
86
else
87
null
88
prefix != null && {
89
- val hasTastyFile = prefix + ".hasTasty"
90
binFile match {
91
case pf: PlainFile =>
92
- val tastyPath = pf.givenPath.parent / hasTastyFile
93
- tastyPath.exists
+ List(".hasTasty", ".tasty").map (x => prefix + x) .map(x => pf.givenPath.parent / x ).exists(_.exists)
94
case _ =>
95
sys.error(s"Unhandled file type: $binFile [getClass = ${binFile.getClass}]")
96
}
0 commit comments