Skip to content

Commit fd1d5d9

Browse files
committed
Missing stripMethodPrefix in FullParameterization.
1 parent 830ad66 commit fd1d5d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/transform/FullParameterization.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ trait FullParameterization {
234234
else {
235235
// this type could have changed on forwarding. Need to insert a cast.
236236
originalDef.vparamss.foldLeft(fun)((acc, vparams) => {
237-
val meth = acc.tpe.asInstanceOf[MethodType]
237+
val meth = acc.tpe.stripMethodPrefix.asInstanceOf[MethodType]
238238
val paramTypes = meth.instantiateParamInfos(vparams.map(_.tpe))
239239
acc.appliedToArgs(
240240
(vparams, paramTypes).zipped.map((vparam, paramType) => {

0 commit comments

Comments
 (0)