Skip to content

Commit b003ed0

Browse files
committed
bugfix: Fix issues with compilation
1 parent d4cbc6a commit b003ed0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

compiler/src/dotty/tools/dotc/core/TypeOps.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -917,9 +917,7 @@ object TypeOps:
917917
}
918918

919919
val inferThisMap = new InferPrefixMap
920-
val tvars = tp1.EtaExpand(tp1.typeParams) match
921-
case eta: TypeLambda => constrained(eta)
922-
case _ => Nil
920+
val tvars = tp1.typeParams.map { tparam => newTypeVar(tparam.paramInfo.bounds, DepParamName.fresh(tparam.paramName)) }
923921
val protoTp1 = inferThisMap.apply(tp1).appliedTo(tvars)
924922

925923
if gadtSyms.nonEmpty then

0 commit comments

Comments
 (0)