Skip to content

Commit eb4d808

Browse files
committed
Added explanation to comment.
1 parent f0e60d3 commit eb4d808

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ abstract class Constraint extends Showable {
103103

104104
/** A new constraint which is derived from this constraint by removing
105105
* the type parameter `param` from the domain and replacing all top-level occurrences
106-
* of the parameter elsewhere in the constraint by type `tp`.
106+
* of the parameter elsewhere in the constraint by type `tp`, or a conservative
107+
* approximation of it if that is needed to avoid cycles.
107108
* Occurrences nested inside a refinement or prefix are not affected.
108109
*/
109110
def replace(param: PolyParam, tp: Type)(implicit ctx: Context): This

0 commit comments

Comments
 (0)