Skip to content

Commit 7f25db9

Browse files
committed
Enter Mirror elements after current phase
1 parent b44cafa commit 7f25db9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ class SyntheticMembers(thisPhase: DenotTransformer) {
552552
def addMethod(name: TermName, info: Type, cls: Symbol, body: (Symbol, Tree) => Context ?=> Tree): Unit = {
553553
val meth = newSymbol(clazz, name, Synthetic | Method, info, coord = clazz.coord)
554554
if (!existingDef(meth, clazz).exists) {
555-
meth.entered
555+
meth.enteredAfter(thisPhase)
556556
newBody = newBody :+
557557
synthesizeDef(meth, vrefss => body(cls, vrefss.head.head))
558558
}
@@ -565,7 +565,7 @@ class SyntheticMembers(thisPhase: DenotTransformer) {
565565
val monoType =
566566
newSymbol(clazz, tpnme.MirroredMonoType, Synthetic, TypeAlias(linked.reachableRawTypeRef), coord = clazz.coord)
567567
newBody = newBody :+ TypeDef(monoType).withSpan(ctx.owner.span.focus)
568-
monoType.entered
568+
monoType.enteredAfter(thisPhase)
569569
}
570570
}
571571
def makeSingletonMirror() =

0 commit comments

Comments
 (0)