File tree 1 file changed +4
-4
lines changed
compiler/src/dotty/tools/dotc/transform
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 {
47
47
48
48
def transform (ref : SingleDenotation )(using Context ): SingleDenotation = ref match {
49
49
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 {
53
53
case MethodType (nme.ALLARGS :: Nil ) => true
54
54
case _ => false
55
55
}
@@ -81,7 +81,7 @@ class Erasure extends Phase with DenotTransformer {
81
81
val newInfo = transformInfo(oldSymbol, oldInfo)
82
82
val oldFlags = ref.flags
83
83
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
85
85
else oldFlags
86
86
val oldAnnotations = ref.annotations
87
87
var newAnnotations = oldAnnotations
You can’t perform that action at this time.
0 commit comments