Skip to content

Commit 1236d8c

Browse files
committed
Convert remaining instance to atPhase
This was tricky because if the implicit toDenot conversion
1 parent 5442a4f commit 1236d8c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ class Erasure extends Phase with DenotTransformer {
4747

4848
def transform(ref: SingleDenotation)(using Context): SingleDenotation = ref match {
4949
case ref: SymDenotation =>
50-
def isCompacted(sym: Symbol) =
51-
sym.isAnonymousFunction && {
52-
sym.info(using ctx.withPhase(ctx.phase.next)) match {
50+
def isCompacted(symd: SymDenotation) =
51+
symd.isAnonymousFunction && {
52+
atPhase(ctx.phase.next)(symd.info) match {
5353
case MethodType(nme.ALLARGS :: Nil) => true
5454
case _ => false
5555
}
@@ -81,7 +81,7 @@ class Erasure extends Phase with DenotTransformer {
8181
val newInfo = transformInfo(oldSymbol, oldInfo)
8282
val oldFlags = ref.flags
8383
var newFlags =
84-
if (oldSymbol.is(Flags.TermParam) && isCompacted(oldSymbol.owner)) oldFlags &~ Flags.Param
84+
if (oldSymbol.is(Flags.TermParam) && isCompacted(oldSymbol.owner.denot)) oldFlags &~ Flags.Param
8585
else oldFlags
8686
val oldAnnotations = ref.annotations
8787
var newAnnotations = oldAnnotations

0 commit comments

Comments
 (0)