From b33babc2398e5013820e21568713fdb6c15aa6fa Mon Sep 17 00:00:00 2001 From: Guillaume Martres Date: Fri, 5 Feb 2016 21:21:53 +0100 Subject: Do not use the plain printer with -Ydebug Instead, a new setting called -Yplain-printer is used for this. After this commit, we can now run all tests with -Ydebug (this was not the case before because using the plain printer breaks -Ytest-pickler) --- src/dotty/tools/dotc/printing/Printers.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dotty/tools/dotc/printing/Printers.scala') diff --git a/src/dotty/tools/dotc/printing/Printers.scala b/src/dotty/tools/dotc/printing/Printers.scala index 7107ccb78..36043a4ff 100644 --- a/src/dotty/tools/dotc/printing/Printers.scala +++ b/src/dotty/tools/dotc/printing/Printers.scala @@ -8,7 +8,7 @@ trait Printers { this: Context => /** A function creating a printer */ def printer = { val pr = printerFn(this) - if (this.debug) pr.plain else pr + if (this.settings.YplainPrinter.value) pr.plain else pr } } -- cgit v1.2.3