File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package dotty.tools.dotc
22package core
33
44import Contexts ._
5- import config .Printers .typr
5+ import config .Printers .{ default , typr }
66
77trait ConstraintRunInfo { self : Run =>
88 private [this ] var maxSize = 0
@@ -12,8 +12,9 @@ trait ConstraintRunInfo { self: Run =>
1212 maxSize = size
1313 maxConstraint = c
1414 }
15- def printMaxConstraint ()(implicit ctx : Context ) =
16- if (maxSize > 0 ) typr.println(s " max constraint = ${maxConstraint.show}" )
17-
15+ def printMaxConstraint ()(implicit ctx : Context ) = {
16+ val printer = if (ctx.settings.YdetailedStats .value) default else typr
17+ if (maxSize > 0 ) printer.println(s " max constraint = ${maxConstraint.show}" )
18+ }
1819 protected def reset () = maxConstraint = null
1920}
You can’t perform that action at this time.
0 commit comments