Skip to content

Commit fdd6a4a

Browse files
committed
quickfix for failing bootstrapped compilation
1 parent 4d7b2a4 commit fdd6a4a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

presentation-compiler/src/main/dotty/tools/pc/WithCompilationUnit.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ class WithCompilationUnit(
3131
driver.run(uri, source)
3232
given ctx: Context = driver.currentCtx
3333

34-
val unit = driver.currentCtx.run.units.head
34+
private val run = driver.currentCtx.run
35+
val unit = run.units.head
3536
val compilatonUnitContext = ctx.fresh.setCompilationUnit(unit)
3637
val offset = params match
3738
case op: OffsetParams => op.offset()

0 commit comments

Comments
 (0)