diff options
author | Martin Odersky <odersky@gmail.com> | 2015-01-24 18:26:52 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-01-24 18:26:52 +0100 |
commit | eb4d80891bcfaf9ffa402ea36f1562c5f597e479 (patch) | |
tree | 18bb2cbd65e466b15ff9189547ae0e6804ceefb7 /src/dotty/tools | |
parent | f0e60d30a529c0ce0ca62cc942c0904595ad33b2 (diff) | |
download | dotty-eb4d80891bcfaf9ffa402ea36f1562c5f597e479.tar.gz dotty-eb4d80891bcfaf9ffa402ea36f1562c5f597e479.tar.bz2 dotty-eb4d80891bcfaf9ffa402ea36f1562c5f597e479.zip |
Added explanation to comment.
Diffstat (limited to 'src/dotty/tools')
-rw-r--r-- | src/dotty/tools/dotc/core/Constraint.scala | 3 |
1 files changed, 2 insertions, 1 deletions
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 |