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
2
2
package core
3
3
4
4
import Contexts ._
5
- import config .Printers .typr
5
+ import config .Printers .{ default , typr }
6
6
7
7
trait ConstraintRunInfo { self : Run =>
8
8
private [this ] var maxSize = 0
@@ -12,8 +12,9 @@ trait ConstraintRunInfo { self: Run =>
12
12
maxSize = size
13
13
maxConstraint = c
14
14
}
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
+ }
18
19
protected def reset () = maxConstraint = null
19
20
}
You can’t perform that action at this time.
0 commit comments