We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0e60d3 commit eb4d808Copy full SHA for eb4d808
src/dotty/tools/dotc/core/Constraint.scala
@@ -103,7 +103,8 @@ abstract class Constraint extends Showable {
103
104
/** A new constraint which is derived from this constraint by removing
105
* the type parameter `param` from the domain and replacing all top-level occurrences
106
- * of the parameter elsewhere in the constraint by type `tp`.
+ * of the parameter elsewhere in the constraint by type `tp`, or a conservative
107
+ * approximation of it if that is needed to avoid cycles.
108
* Occurrences nested inside a refinement or prefix are not affected.
109
*/
110
def replace(param: PolyParam, tp: Type)(implicit ctx: Context): This
0 commit comments