aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/Types.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-08-01 14:37:57 +0200
committerMartin Odersky <odersky@gmail.com>2016-08-16 17:32:54 +0200
commitd2120ca8accb7d6b8438431931c84870e835512c (patch)
tree651c495bd7c92061500118c550eddb16422c7a52 /src/dotty/tools/dotc/core/Types.scala
parenta57b4a3ec5b139711ad7e729040165e58751a49c (diff)
downloaddotty-d2120ca8accb7d6b8438431931c84870e835512c.tar.gz
dotty-d2120ca8accb7d6b8438431931c84870e835512c.tar.bz2
dotty-d2120ca8accb7d6b8438431931c84870e835512c.zip
Suspend interpolating typevars when there are unreported errors.
Interpolating typevars that appear co- or contra-variantly in a type is a cleanup measure - it helps keep the constraint set small. However, if there are uneported errors, some of these errors might report on unsatisfiable constraints for these type variables. In that case, instantiating the type variables risks being confusing.
Diffstat (limited to 'src/dotty/tools/dotc/core/Types.scala')
0 files changed, 0 insertions, 0 deletions