diff options
author | Martin Odersky <odersky@gmail.com> | 2015-11-16 14:51:20 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-11-16 14:51:20 +0100 |
commit | a7b95b8e40df320e8f4aee59a3e382957c88d517 (patch) | |
tree | fb7ebd5ad19fe8dbac5fb1b00e4296d14941745e | |
parent | 10ee00edf779fbf8ad74886e523811dd96fbab5e (diff) | |
download | dotty-a7b95b8e40df320e8f4aee59a3e382957c88d517.tar.gz dotty-a7b95b8e40df320e8f4aee59a3e382957c88d517.tar.bz2 dotty-a7b95b8e40df320e8f4aee59a3e382957c88d517.zip |
Better diagnostic for migration warnings
Flag them as "migration warning" rather than just "warning".
-rw-r--r-- | src/dotty/tools/dotc/reporting/ConsoleReporter.scala | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dotty/tools/dotc/reporting/ConsoleReporter.scala b/src/dotty/tools/dotc/reporting/ConsoleReporter.scala index 3e2aaa880..45268b673 100644 --- a/src/dotty/tools/dotc/reporting/ConsoleReporter.scala +++ b/src/dotty/tools/dotc/reporting/ConsoleReporter.scala @@ -47,6 +47,8 @@ class ConsoleReporter( printMessageAndPos(s"error: ${d.msg}", d.pos) if (ctx.settings.prompt.value) displayPrompt() case d: ConditionalWarning if !d.enablingOption.value => + case d: MigrationWarning => + printMessageAndPos(s"migration warning: ${d.msg}", d.pos) case d: Warning => printMessageAndPos(s"warning: ${d.msg}", d.pos) case _ => |