We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43e286d commit f3821c1Copy full SHA for f3821c1
compiler/src/dotty/tools/dotc/transform/Mixin.scala
@@ -147,7 +147,7 @@ class Mixin extends MiniPhase with SymTransformer { thisPhase =>
147
// !decl.isClass avoids forcing nested traits, preventing cycles
148
if !decl.isClass && needsTraitSetter(decl) then
149
val setter = makeTraitSetter(decl.asTerm)
150
- setter.validFor = Period(ctx.runId, thisPhase.next.id, decl.validFor.lastPhaseId)
+ setter.validFor = thisPhase.validFor // validity of setter = next phase up to next transformer afterwards
151
decls1.enter(setter)
152
modified = true
153
if modified then
0 commit comments