Skip to content

Commit ffea5a7

Browse files
authored
Merge pull request #11705 from dotty-staging/add-missing-suffixes
Add missing suffixes
2 parents 40f29c5 + 0565622 commit ffea5a7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

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

+2
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

scaladoc-testcases/src/tests/genericMethods.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Types:
99
def mixedAndAndOr(base: Int & String, nested: List[Int | Double] & Seq[String]): Unit
1010
= ???
1111

12-
def literal(i: 1, d: 3.3, c: 'c'): 34
12+
def literal(i: 1, d: 3.3d, c: 'c'): 34
1313
= 34
1414

1515
def byName(a: => Int, b: => String | Int): Unit

0 commit comments

Comments
 (0)