Skip to content

Commit 277a20e

Browse files
committed
Cleanup TailRec
1 parent 786e6da commit 277a20e

File tree

3 files changed

+131
-151
lines changed

3 files changed

+131
-151
lines changed

compiler/src/dotty/tools/dotc/config/Printers.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ object Printers {
3131
val plugins: Printer = noPrinter
3232
val simplify: Printer = noPrinter
3333
val subtyping: Printer = noPrinter
34+
val tailrec: Printer = noPrinter
3435
val transforms: Printer = noPrinter
3536
val typr: Printer = noPrinter
3637
val unapp: Printer = noPrinter

compiler/src/dotty/tools/dotc/reporting/diagnostic/messages.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1804,7 +1804,7 @@ object messages {
18041804
val symbolKind: String = symbol.showKind
18051805
val msg: String =
18061806
if (symbol.is(Method))
1807-
hl"TailRec optimisation not applicable, $symbol is neither ${"private"} nor ${"final"}."
1807+
hl"TailRec optimisation not applicable, method not tail recursive"
18081808
else
18091809
hl"TailRec optimisation not applicable, ${symbolKind} isn't a method."
18101810
val explanation: String =

0 commit comments

Comments
 (0)