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 ddf26ee commit 040b831Copy full SHA for 040b831
compiler/src/dotty/tools/dotc/typer/ProtoTypes.scala
@@ -457,10 +457,10 @@ object ProtoTypes {
457
s"inconsistent: no typevars were added to committable constraint ${state.constraint}")
458
459
def newTypeVars(tl: TypeLambda): List[TypeTree] =
460
- for (n <- (0 until tl.paramNames.length).toList)
+ for (paramRef <- tl.paramRefs)
461
yield {
462
val tt = new TypeVarBinder().withPos(owningTree.pos)
463
- val tvar = new TypeVar(tl.paramRefs(n), state)
+ val tvar = new TypeVar(paramRef, state)
464
state.ownedVars += tvar
465
tt.withType(tvar)
466
}
0 commit comments