We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e520b8 commit 482bec8Copy full SHA for 482bec8
compiler/src/dotty/tools/dotc/core/Contexts.scala
@@ -437,7 +437,7 @@ object Contexts {
437
438
/** The super- or this-call context with given owner and locals. */
439
private def superOrThisCallContext(owner: Symbol, locals: Scope): FreshContext = {
440
- var classCtx = outersIterator.dropWhile(!_.isClassDefContext).next()
+ val classCtx = outersIterator.dropWhile(!_.isClassDefContext).next()
441
classCtx.outer.fresh.setOwner(owner)
442
.setScope(locals)
443
.setMode(classCtx.mode)
0 commit comments