Skip to content

Commit f063845

Browse files
committed
Cleanup TailRec
1 parent a40039e commit f063845

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
@@ -1797,7 +1797,7 @@ object messages {
17971797
val symbolKind = symbol.showKind
17981798
val msg =
17991799
if (symbol.is(Method))
1800-
hl"TailRec optimisation not applicable, $symbol is neither ${"private"} nor ${"final"}."
1800+
hl"TailRec optimisation not applicable, method not tail recursive"
18011801
else
18021802
hl"TailRec optimisation not applicable, ${symbolKind} isn't a method."
18031803
val explanation =

0 commit comments

Comments
 (0)