Skip to content

Commit 4abbef1

Browse files
committed
InteractiveDriver: use either .tasty or .hasTasty
1 parent 9d5d7b5 commit 4abbef1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

compiler/src/dotty/tools/dotc/interactive/InteractiveDriver.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,9 @@ class InteractiveDriver(settings: List[String]) extends Driver {
8686
else
8787
null
8888
prefix != null && {
89-
val hasTastyFile = prefix + ".hasTasty"
9089
binFile match {
9190
case pf: PlainFile =>
92-
val tastyPath = pf.givenPath.parent / hasTastyFile
93-
tastyPath.exists
91+
List(".hasTasty", ".tasty").map (x => prefix + x) .map(x => pf.givenPath.parent / x ).exists(_.exists)
9492
case _ =>
9593
sys.error(s"Unhandled file type: $binFile [getClass = ${binFile.getClass}]")
9694
}

0 commit comments

Comments
 (0)