File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
compiler/src/dotty/tools/dotc/transform Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments