Skip to content

Commit cbf6be2

Browse files
committed
Bugfix: Make another map an IdempotentCaptRefMap
1 parent ee5a4cb commit cbf6be2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ object TypeOps:
186186
if (normed.exists) normed else mapOver
187187
case tp: MethodicType =>
188188
// See documentation of `Types#simplified`
189-
val addTypeVars = new TypeMap:
189+
val addTypeVars = new TypeMap with IdempotentCaptRefMap:
190190
val constraint = ctx.typerState.constraint
191191
def apply(t: Type): Type = t match
192192
case t: TypeParamRef => constraint.typeVarOfParam(t).orElse(t)

0 commit comments

Comments
 (0)