Skip to content

Commit 291656c

Browse files
committed
Compiler#rootContext: do not overwrite initial modes
1 parent 11476d1 commit 291656c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/Compiler.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ class Compiler {
129129
val start = bootstrap.fresh
130130
.setOwner(defn.RootClass)
131131
.setTyper(new Typer)
132-
.setMode(Mode.ImplicitsEnabled)
132+
.addMode(Mode.ImplicitsEnabled)
133133
.setTyperState(new MutableTyperState(ctx.typerState, ctx.typerState.reporter, isCommittable = true))
134134
.setFreshNames(new FreshNameCreator.Default)
135135
ctx.initialize()(start) // re-initialize the base context with start

0 commit comments

Comments
 (0)