Skip to content

Commit ddf26ee

Browse files
committed
Refactor
1 parent 01c5eac commit ddf26ee

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,7 @@ trait ConstraintHandling {
345345
assert {
346346
checkPropagated(i"initialized $tl") {
347347
constraint = constraint.add(tl, tvars)
348-
tl.paramNames.indices.forall { i =>
349-
val param = tl.paramRefs(i)
348+
tl.paramRefs.forall { param =>
350349
val bounds = constraint.nonParamBounds(param)
351350
val lower = constraint.lower(param)
352351
val upper = constraint.upper(param)

0 commit comments

Comments
 (0)