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 {
531
531
case ClazzTag => " classOf[" ~ toText(const.typeValue) ~ " ]"
532
532
case CharTag => literalText(s " ' ${escapedChar(const.charValue)}' " )
533
533
case LongTag => literalText(const.longValue.toString + " L" )
534
+ case DoubleTag => literalText(const.doubleValue.toString + " d" )
535
+ case FloatTag => literalText(const.floatValue.toString + " f" )
534
536
case _ => literalText(String .valueOf(const.value))
535
537
}
536
538
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ class Types:
9
9
def mixedAndAndOr (base : Int & String , nested : List [Int | Double ] & Seq [String ]): Unit
10
10
= ???
11
11
12
- def literal (i : 1 , d : 3.3 , c : 'c' ): 34
12
+ def literal (i : 1 , d : 3.3d , c : 'c' ): 34
13
13
= 34
14
14
15
15
def byName (a : => Int , b : => String | Int ): Unit
You can’t perform that action at this time.
0 commit comments