andi
04/30/2021, 2:07 PMtoString()
calls for the different expression.arguments
(here). The "pre IR" translator had a similar mechanism. However I'm unsure why the pre IR code also added toString
for the other types (Any, Comparable, Number)? At least if I look at the kotlin.js , I can only see Long
and BoxedChar
implementing valueOf
.andi
04/30/2021, 2:23 PMtoString()
for types Any
,Number
and Comparable
. These are the interfaces/super classes that are implemented by Long 🤦♂️andi
04/30/2021, 4:07 PMtoString()
calls directly in the IrElementToJsExpressionTransformer
or would it be better to handle such cases during the "lowering" ? Adding the toString
calls for "normal" values would be easy, however it gets more complex if the values are optionalbashor
04/30/2021, 5:42 PMandi
05/10/2021, 10:12 AMandi
06/21/2021, 9:40 AMudalov
bashor
09/14/2021, 6:33 PMandi
09/16/2021, 9:23 AM