File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
compiler/src/dotty/tools/dotc/printing
scaladoc-testcases/src/tests Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments