Skip to content

Commit f987191

Browse files
committed
Add missing suffixes
1 parent 5184419 commit f987191

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/src/dotty/tools/dotc/printing/PlainPrinter.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,8 @@ class PlainPrinter(_ctx: Context) extends Printer {
531531
case ClazzTag => "classOf[" ~ toText(const.typeValue) ~ "]"
532532
case CharTag => literalText(s"'${escapedChar(const.charValue)}'")
533533
case LongTag => literalText(const.longValue.toString + "L")
534+
case DoubleTag => literalText(const.doubleValue.toString + "d")
535+
case FloatTag => literalText(const.floatValue.toString + "f")
534536
case _ => literalText(String.valueOf(const.value))
535537
}
536538

0 commit comments

Comments
 (0)