diff options
Diffstat (limited to 'src/dotty/tools/dotc/Compiler.scala')
-rw-r--r-- | src/dotty/tools/dotc/Compiler.scala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/Compiler.scala b/src/dotty/tools/dotc/Compiler.scala index 1172143cd..f6723ddf4 100644 --- a/src/dotty/tools/dotc/Compiler.scala +++ b/src/dotty/tools/dotc/Compiler.scala @@ -16,7 +16,7 @@ class Compiler { def nextRunId = { runId += 1; runId } def rootContext(implicit ctx: Context): Context = { - ctx.definitions.init() + ctx.definitions.init(ctx) ctx.usePhases(phases) val start = ctx.fresh .withPeriod(Period(nextRunId, FirstPhaseId)) @@ -24,6 +24,7 @@ class Compiler { .withTyper(new Typer) .withNewMode(Mode.ImplicitsEnabled) .withTyperState(new MutableTyperState(ctx.typerState, new ConsoleReporter()(ctx), isCommittable = true)) + ctx.definitions.init(start) def addImport(ctx: Context, sym: Symbol) = ctx.fresh.withImportInfo(ImportInfo.rootImport(sym)(ctx)) (start.withRunInfo(new RunInfo(start)) /: defn.RootImports)(addImport) |