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 a53939c commit 69e8f19Copy full SHA for 69e8f19
compiler/src/dotty/tools/dotc/interactive/InteractiveDriver.scala
@@ -155,7 +155,7 @@ class InteractiveDriver(val settings: List[String]) extends Driver {
155
156
run.compileSources(List(source))
157
run.printSummary()
158
- val unit = ctx.run.units.head
+ val unit = if ctx.run.units.nonEmpty then ctx.run.units.head else ctx.run.suspendedUnits.head
159
val t = unit.tpdTree
160
cleanup(t)
161
myOpenedTrees(uri) = topLevelTrees(t, source)
0 commit comments