diff options
author | Martin Odersky <odersky@gmail.com> | 2014-12-09 11:38:12 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2014-12-10 18:51:53 +0100 |
commit | d4d11fe7732e436178d7fe0350e116c646452cc4 (patch) | |
tree | 51dffc77dca40a764f03fd301fd252a03896cd21 /src/dotty/tools/dotc/core/Constraint.scala | |
parent | 63505c28506445216e883309237c84448ce11a7d (diff) | |
download | dotty-d4d11fe7732e436178d7fe0350e116c646452cc4.tar.gz dotty-d4d11fe7732e436178d7fe0350e116c646452cc4.tar.bz2 dotty-d4d11fe7732e436178d7fe0350e116c646452cc4.zip |
Create TypeAlias subclass of TypeBouunds
Specialize hash consing of type aliases.
Diffstat (limited to 'src/dotty/tools/dotc/core/Constraint.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/Constraint.scala | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/core/Constraint.scala b/src/dotty/tools/dotc/core/Constraint.scala index 339dbb64a..e241794d0 100644 --- a/src/dotty/tools/dotc/core/Constraint.scala +++ b/src/dotty/tools/dotc/core/Constraint.scala @@ -24,7 +24,9 @@ object Constraint { private val addDep: DepDelta = (_ + _) private val removeDep: DepDelta = (_ - _) - private val NoTypeBounds = new TypeBounds(WildcardType, WildcardType){} + private val NoTypeBounds = new TypeBounds(WildcardType, WildcardType) { + override def computeHash = unsupported("computeHash") + } /** An accumulator that changes dependencies on `param`. * @param param The parameter to which changed dependencies refer. @@ -70,7 +72,7 @@ import Constraint._ * @param dependents a map from PolyTypes to arrays of Sets of PolyParams. * The i'th set in an array corresponding to polytype `pt` contains * those dependent `PolyParam`s `dp` that have `PolyParam(pt, i)` in their bounds in - * significant position. A position is significant if solving the + * significant position. A position is significant if solving the * constraint for `(pt, i)` with a type higher than its lower bound * would lead to a constraint for `dp` that was not looser than * the existing constraint. Specifically, it means that all poly params |