From a4937916037f74b414c9bab1819681ed2ecd7fdc Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Tue, 27 Jan 2015 15:13:23 +0100 Subject: Fixups taking into account reviewer's comments. --- src/dotty/tools/dotc/core/ConstraintHandling.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/dotty/tools/dotc/core/ConstraintHandling.scala') diff --git a/src/dotty/tools/dotc/core/ConstraintHandling.scala b/src/dotty/tools/dotc/core/ConstraintHandling.scala index 02f5bf87f..478fc5740 100644 --- a/src/dotty/tools/dotc/core/ConstraintHandling.scala +++ b/src/dotty/tools/dotc/core/ConstraintHandling.scala @@ -218,7 +218,8 @@ trait ConstraintHandling { * `bound` is assumed to be in normalized form, as specified in `firstTry` and * `secondTry` of `TypeComparer`. In particular, it should not be an alias type, * lazy ref, typevar, wildcard type, error type. In addition, upper bounds may - * not be AndTypes and lower bounds may not be OrTypes. + * not be AndTypes and lower bounds may not be OrTypes. This is assured by the + * way isSubType is organized. */ protected def addConstraint(param: PolyParam, bound: Type, fromBelow: Boolean): Boolean = { def description = i"constr $param ${if (fromBelow) ">:" else "<:"} $bound:\n$constraint" -- cgit v1.2.3