Skip to content

Commit 941da36

Browse files
kasiaMarekWojciechMazur
authored andcommitted
quickfix for failing bootstrapped compilation
[Cherry-picked fdd6a4a]
1 parent 617ad83 commit 941da36

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)