We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7a5f48a + c6ab542 commit f2e61ceCopy full SHA for f2e61ce
compiler/src/dotty/tools/dotc/typer/Inferencing.scala
@@ -647,7 +647,9 @@ trait Inferencing { this: Typer =>
647
else
648
typr.println(i"no interpolation for nonvariant $tvar in $state")
649
)
650
- buf.toList
+ // constrainIfDependentParamRef could also have instantiated tvars added to buf before the check
651
+ buf.filterNot(_._1.isInstantiated).toList
652
+ end toInstantiate
653
654
def typeVarsIn(xs: ToInstantiate): TypeVars =
655
xs.foldLeft(SimpleIdentitySet.empty: TypeVars)((tvs, tvi) => tvs + tvi._1)
0 commit comments