Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion compiler/src/dotty/tools/dotc/typer/Inferencing.scala
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,9 @@ trait Inferencing { this: Typer =>
else
typr.println(i"no interpolation for nonvariant $tvar in $state")
)
buf.toList
// constrainIfDependentParamRef could also have instantiated tvars added to buf before the check
buf.filterNot(_._1.isInstantiated).toList
end toInstantiate

def typeVarsIn(xs: ToInstantiate): TypeVars =
xs.foldLeft(SimpleIdentitySet.empty: TypeVars)((tvs, tvi) => tvs + tvi._1)
Expand Down