aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/Run.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-02-09 13:32:16 +0100
committerMartin Odersky <odersky@gmail.com>2014-02-09 13:32:55 +0100
commitcd64021dc45e937b19980e2f80e3961021bf6918 (patch)
treee9c8844dc67faf1d25ed54f4b1d8727b426bcd5a /src/dotty/tools/dotc/Run.scala
parent9ceedf229de878dc7e6fc485dc11f9f92af8fe1c (diff)
downloaddotty-cd64021dc45e937b19980e2f80e3961021bf6918.tar.gz
dotty-cd64021dc45e937b19980e2f80e3961021bf6918.tar.bz2
dotty-cd64021dc45e937b19980e2f80e3961021bf6918.zip
Move maxConstraint computation to RunInfo to avoid references to stale symbols.
Diffstat (limited to 'src/dotty/tools/dotc/Run.scala')
-rw-r--r--src/dotty/tools/dotc/Run.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/Run.scala b/src/dotty/tools/dotc/Run.scala
index c662aabfa..928bf753a 100644
--- a/src/dotty/tools/dotc/Run.scala
+++ b/src/dotty/tools/dotc/Run.scala
@@ -31,7 +31,7 @@ class Run(comp: Compiler)(implicit ctx: Context) {
/** Print summary; return # of errors encountered */
def printSummary(): Reporter = {
- Constraint.printMax()
+ ctx.runInfo.printMaxConstraint()
val r = ctx.typerState.reporter
r.printSummary
r