From eb4d80891bcfaf9ffa402ea36f1562c5f597e479 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Sat, 24 Jan 2015 18:26:52 +0100 Subject: Added explanation to comment. --- src/dotty/tools/dotc/core/Constraint.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/dotty/tools/dotc/core/Constraint.scala b/src/dotty/tools/dotc/core/Constraint.scala index c4c92d943..d6e1589e0 100644 --- a/src/dotty/tools/dotc/core/Constraint.scala +++ b/src/dotty/tools/dotc/core/Constraint.scala @@ -103,7 +103,8 @@ abstract class Constraint extends Showable { /** A new constraint which is derived from this constraint by removing * the type parameter `param` from the domain and replacing all top-level occurrences - * of the parameter elsewhere in the constraint by type `tp`. + * of the parameter elsewhere in the constraint by type `tp`, or a conservative + * approximation of it if that is needed to avoid cycles. * Occurrences nested inside a refinement or prefix are not affected. */ def replace(param: PolyParam, tp: Type)(implicit ctx: Context): This -- cgit v1.2.3