File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ object TypeErasure {
164
164
else if (sym.isConstructor) outer.addParam(sym.owner.asClass, erase(tp)(erasureCtx))
165
165
else erase.eraseInfo(tp, sym)(erasureCtx) match {
166
166
case einfo : MethodType if sym.isGetter && einfo.resultType.isRef(defn.UnitClass ) =>
167
- MethodType (Nil , Nil , defn.BoxedUnitClass .typeRef)
167
+ MethodType (Nil , defn.BoxedUnitClass .typeRef)
168
168
case einfo =>
169
169
einfo
170
170
}
Original file line number Diff line number Diff line change @@ -29,6 +29,6 @@ class TypeUtils(val self: Type) extends AnyVal {
29
29
30
30
def ensureMethodic (implicit ctx : Context ): Type = self match {
31
31
case self : MethodicType => self
32
- case _ => ExprType (self)
32
+ case _ => if (ctx.erasedTypes) MethodType ( Nil , self) else ExprType (self)
33
33
}
34
34
}
You can’t perform that action at this time.
0 commit comments