Skip to content

Commit 482bec8

Browse files
committed
Use val for classCtx in superOrThisCallContext
1 parent 1e520b8 commit 482bec8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/core/Contexts.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ object Contexts {
437437

438438
/** The super- or this-call context with given owner and locals. */
439439
private def superOrThisCallContext(owner: Symbol, locals: Scope): FreshContext = {
440-
var classCtx = outersIterator.dropWhile(!_.isClassDefContext).next()
440+
val classCtx = outersIterator.dropWhile(!_.isClassDefContext).next()
441441
classCtx.outer.fresh.setOwner(owner)
442442
.setScope(locals)
443443
.setMode(classCtx.mode)

0 commit comments

Comments
 (0)