Skip to content

Commit 0402937

Browse files
committed
Avoid double dependency checking when creating constraint entries
1 parent c0c7595 commit 0402937

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ class OrderingConstraint(private val boundsMap: ParamBounds,
427427
val param = poly.paramRefs(i)
428428
val bounds = dropWildcards(nonParamBounds(param))
429429
val stripped = stripParams(bounds, todos, isUpper = true)
430-
current = updateEntry(current, param, stripped)
430+
current = boundsLens.update(this, current, param, stripped)
431431
while todos.nonEmpty do
432432
current = todos.head(current, param)
433433
todos.dropInPlace(1)

0 commit comments

Comments
 (0)