We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4cbc6a commit b003ed0Copy full SHA for b003ed0
compiler/src/dotty/tools/dotc/core/TypeOps.scala
@@ -917,9 +917,7 @@ object TypeOps:
917
}
918
919
val inferThisMap = new InferPrefixMap
920
- val tvars = tp1.EtaExpand(tp1.typeParams) match
921
- case eta: TypeLambda => constrained(eta)
922
- case _ => Nil
+ val tvars = tp1.typeParams.map { tparam => newTypeVar(tparam.paramInfo.bounds, DepParamName.fresh(tparam.paramName)) }
923
val protoTp1 = inferThisMap.apply(tp1).appliedTo(tvars)
924
925
if gadtSyms.nonEmpty then
0 commit comments