Skip to content

Commit 38108d3

Browse files
authored
Merge pull request #9022 from dotty-staging/fix-approx-doc
Fix doc of ConstraintHandling#approximation
2 parents 427aae6 + 1104fb9 commit 38108d3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,10 +243,10 @@ trait ConstraintHandling[AbstractContext] {
243243
/** Solve constraint set for given type parameter `param`.
244244
* If `fromBelow` is true the parameter is approximated by its lower bound,
245245
* otherwise it is approximated by its upper bound, unless the upper bound
246-
* contains a reference to the parameter itself (`addOneBound` ensures that
247-
* such reference never occur in the lower bound).
246+
* contains a reference to the parameter itself (such occurrences can arise
247+
* for F-bounded types, `addOneBound` ensures that they never occur in the
248+
* lower bound).
248249
* Wildcard types in bounds are approximated by their upper or lower bounds.
249-
* (Such occurrences can arise for F-bounded types).
250250
* The constraint is left unchanged.
251251
* @return the instantiating type
252252
* @pre `param` is in the constraint's domain.

0 commit comments

Comments
 (0)