Skip to content

Commit acc0e9d

Browse files
committed
TyperState#ensureNotConflicting: multiple lambdas might conflict
The use of find instead of filter appears to be a typo.
1 parent c47a2d3 commit acc0e9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ class TyperState() {
159159
* in this constraint and its predecessors where necessary.
160160
*/
161161
def ensureNotConflicting(other: Constraint)(using Context): Unit =
162-
val conflicting = constraint.domainLambdas.find(constraint.hasConflictingTypeVarsFor(_, other))
162+
val conflicting = constraint.domainLambdas.filter(constraint.hasConflictingTypeVarsFor(_, other))
163163
for tl <- conflicting do
164164
val tl1 = constraint.ensureFresh(tl)
165165
for case (tvar: TypeVar, pref1) <- tl.paramRefs.map(constraint.typeVarOfParam).lazyZip(tl1.paramRefs) do

0 commit comments

Comments
 (0)