Skip to content

Commit 1171db4

Browse files
committed
Document Constraint methods
1 parent 3cf8530 commit 1171db4

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,16 @@ abstract class Constraint extends Showable {
4545
/** The parameters that are known to be greater wrt <: than `param` */
4646
def upper(param: TypeParamRef): List[TypeParamRef]
4747

48-
/** `lower`, except that `minLower.forall(tpr => !minLower.exists(_ <:< tpr))` */
48+
/** The lower dominator set.
49+
*
50+
* This is like `lower`, except that each parameter returned is no smaller than every other returned parameter.
51+
*/
4952
def minLower(param: TypeParamRef): List[TypeParamRef]
5053

51-
/** `upper`, except that `minUpper.forall(tpr => !minUpper.exists(tpr <:< _))` */
54+
/** The upper dominator set.
55+
*
56+
* This is like `upper`, except that each parameter returned is no greater than every other returned parameter.
57+
*/
5258
def minUpper(param: TypeParamRef): List[TypeParamRef]
5359

5460
/** lower(param) \ lower(butNot) */

0 commit comments

Comments
 (0)