File tree 1 file changed +2
-3
lines changed
compiler/src/dotty/tools/dotc/transform 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -749,14 +749,13 @@ object Erasure {
749
749
val origFunType = origFun.tpe.widen(using preErasureCtx)
750
750
val ownArgs = if origFunType.isErasedMethod then Nil else args
751
751
val fun1 = typedExpr(fun, AnyFunctionProto )
752
- val fun1core = stripBlock(fun1)
753
752
fun1.tpe.widen match
754
753
case mt : MethodType =>
755
754
val (xmt, // A method type like `mt` but with bunched arguments expanded to individual ones
756
755
bunchArgs, // whether arguments are bunched
757
756
outers) = // the outer reference parameter(s)
758
- if fun1core .isInstanceOf [Apply ] then
759
- (mt, fun1core .removeAttachment(BunchedArgs ).isDefined, Nil )
757
+ if fun1 .isInstanceOf [Apply ] then
758
+ (mt, fun1 .removeAttachment(BunchedArgs ).isDefined, Nil )
760
759
else
761
760
val xmt = expandedMethodType(mt, origFun)
762
761
(xmt, xmt ne mt, outer.args(origFun))
You can’t perform that action at this time.
0 commit comments