Closed
Description
Compiler version
Minimized code
Printing the tree with -Xprint:parser
returns code that is not valid scala 3 code
inline val _: true = true // boolean literal
inline val _: "abc" = "abc" // string literal
inline val _: 'c' = 'c' // character literal
inline val _: 1.2f = 1.2f // floating point literal
inline val _: 1.2d = 1.2d // double number literal
Output
[[syntax trees at end of parser]] // playground.scala
package <empty> {
inline val _: true.type = true
inline val _: "abc".type = "abc"
inline val _: 'c'.type = 'c'
inline val _: 1.2f.type = 1.2f
inline val _: 1.2d.type = 1.2d
}
Expectation
[[syntax trees at end of parser]] // playground.scala
package <empty> {
inline val _: true = true
inline val _: "abc" = "abc"
inline val _: 'c' = 'c'
inline val _: 1.2f = 1.2f
inline val _: 1.2d = 1.2d
}