diff options
author | Martin Odersky <odersky@gmail.com> | 2014-03-09 19:06:01 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2014-03-10 11:03:44 +0100 |
commit | e1ec7ede675143492510b2d90260a430125e0808 (patch) | |
tree | 0a8a5ba3fa12369c3783f6f637ae94502a31bd5b /src/dotty/tools/dotc/core/Constraint.scala | |
parent | d827b0180b05e7461856f668c3c4ca0ea6ed5d62 (diff) | |
download | dotty-e1ec7ede675143492510b2d90260a430125e0808.tar.gz dotty-e1ec7ede675143492510b2d90260a430125e0808.tar.bz2 dotty-e1ec7ede675143492510b2d90260a430125e0808.zip |
Improve test infrastructure
1) New method compileFiles which allows one to compile the content of a directory one file or directory
after another.
2) max constraint is printed to typr.
Added new test pos_all. Other pos tests can be retired.
Diffstat (limited to 'src/dotty/tools/dotc/core/Constraint.scala')
-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 9354e18f8..64fb8764e 100644 --- a/src/dotty/tools/dotc/core/Constraint.scala +++ b/src/dotty/tools/dotc/core/Constraint.scala @@ -8,6 +8,7 @@ import collection.mutable import printing.{Printer, Showable} import printing.Texts._ import config.Config +import config.Printers._ /** Constraint over undetermined type parameters * @param myMap a map from PolyType to arrays. @@ -304,5 +305,5 @@ trait ConstraintRunInfo { self: RunInfo => maxConstraint = c } def printMaxConstraint()(implicit ctx: Context) = - if (maxSize > 0) println(s"max constraint = ${maxConstraint.show}") + if (maxSize > 0) typr.println(s"max constraint = ${maxConstraint.show}") } |