File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
compiler/src/dotty/tools/dotc/transform Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -454,13 +454,14 @@ object Erasure {
454
454
ref(meth).appliedToArgs(args.toList ++ followingArgs)
455
455
}
456
456
457
- private def protoArgs (pt : Type , methTp : Type ): List [untpd.Tree ] = (pt, methTp) match {
458
- case (pt : FunProto , methTp : MethodType ) if methTp.isErasedMethod =>
459
- protoArgs(pt.resType, methTp.resType)
460
- case (pt : FunProto , methTp : MethodType ) =>
461
- pt.args ++ protoArgs(pt.resType, methTp.resType)
462
- case _ => Nil
463
- }
457
+ private def protoArgs (pt : Type , methTp : Type )(implicit ctx : Context ): List [untpd.Tree ] =
458
+ (pt, methTp.stripMethodPrefix) match {
459
+ case (pt : FunProto , methTp : MethodType ) if methTp.isErasedMethod =>
460
+ protoArgs(pt.resType, methTp.resType)
461
+ case (pt : FunProto , methTp : MethodType ) =>
462
+ pt.args ++ protoArgs(pt.resType, methTp.resType)
463
+ case _ => Nil
464
+ }
464
465
465
466
override def typedTypeApply (tree : untpd.TypeApply , pt : Type )(implicit ctx : Context ) = {
466
467
val ntree = interceptTypeApply(tree.asInstanceOf [TypeApply ])(ctx.withPhase(ctx.erasurePhase))
You can’t perform that action at this time.
0 commit comments