We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1e520b8 + 482bec8 commit b93c337Copy full SHA for b93c337
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