aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/Run.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2013-11-10 22:40:14 +0100
committerMartin Odersky <odersky@gmail.com>2013-11-10 22:40:14 +0100
commit2be8e8e6c1b48597d221f6cfc11c5f3b6fc113b3 (patch)
treecd087b2c3d520703ddc4a4f89dadb06f98f95180 /src/dotty/tools/dotc/Run.scala
parenta7b60116c30677eeff310b81af2fa714bf1950d6 (diff)
downloaddotty-2be8e8e6c1b48597d221f6cfc11c5f3b6fc113b3.tar.gz
dotty-2be8e8e6c1b48597d221f6cfc11c5f3b6fc113b3.tar.bz2
dotty-2be8e8e6c1b48597d221f6cfc11c5f3b6fc113b3.zip
Reporting max constraint
Instead of throwing an exception if SImpleMap size goes over some threshold, we now report the largest constraint encountered in a run.
Diffstat (limited to 'src/dotty/tools/dotc/Run.scala')
-rw-r--r--src/dotty/tools/dotc/Run.scala6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/Run.scala b/src/dotty/tools/dotc/Run.scala
index a00fda36b..b12511478 100644
--- a/src/dotty/tools/dotc/Run.scala
+++ b/src/dotty/tools/dotc/Run.scala
@@ -4,7 +4,7 @@ package dotc
import core._
import Contexts._, Periods._, Symbols._
import io.PlainFile
-import util.{SourceFile, NoSource, Stats}
+import util.{SourceFile, NoSource, Stats, SimpleMap}
class Run(comp: Compiler)(implicit ctx: Context) {
@@ -28,6 +28,8 @@ class Run(comp: Compiler)(implicit ctx: Context) {
}
}
- def printSummary(): Unit =
+ def printSummary(): Unit = {
ctx.typerState.reporter.printSummary
+ Constraint.printMax()
+ }
} \ No newline at end of file