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 ee5a4cb commit cbf6be2Copy full SHA for cbf6be2
compiler/src/dotty/tools/dotc/core/TypeOps.scala
@@ -186,7 +186,7 @@ object TypeOps:
186
if (normed.exists) normed else mapOver
187
case tp: MethodicType =>
188
// See documentation of `Types#simplified`
189
- val addTypeVars = new TypeMap:
+ val addTypeVars = new TypeMap with IdempotentCaptRefMap:
190
val constraint = ctx.typerState.constraint
191
def apply(t: Type): Type = t match
192
case t: TypeParamRef => constraint.typeVarOfParam(t).orElse(t)
0 commit comments