Skip to content

Commit b84d91d

Browse files
committed
Streamline validity update
1 parent 8f3c422 commit b84d91d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/transform/Mixin.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ class Mixin extends MiniPhase with SymTransformer { thisPhase =>
147147
// !decl.isClass avoids forcing nested traits, preventing cycles
148148
if !decl.isClass && needsTraitSetter(decl) then
149149
val setter = makeTraitSetter(decl.asTerm)
150-
setter.validFor = Period(ctx.runId, thisPhase.next.id, decl.validFor.lastPhaseId)
150+
setter.validFor = thisPhase.validFor // validity of setter = next phase up to next transformer afterwards
151151
decls1.enter(setter)
152152
modified = true
153153
if modified then

0 commit comments

Comments
 (0)