We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e77a929 commit cfc0ab5Copy full SHA for cfc0ab5
library/src/scala/quoted/ToExpr.scala
@@ -424,8 +424,7 @@ object ToExpr {
424
/** Default implementation of `ToExpr[BigDecimal using the default MathContext]` */
425
given BigDecimalToExpr: ToExpr[BigDecimal] with {
426
def apply(x: BigDecimal)(using Quotes): Expr[BigDecimal] =
427
- val bigDecimal: String = "" + x // workaround "method toString in class BigDecimal does not take parameters" in scaladoc/generateScalaDocumentation
428
- '{ BigDecimal(${Expr(bigDecimal)}) }
+ '{ BigDecimal(${Expr(x.toString)}) }
429
}
430
431
/** Default implementation of `ToExpr[StringContext]` */
0 commit comments