Constant fold toInt
, toLong
, toDouble
, toFloat
, toByte
and toShort
#13990
Labels
Milestone
Compiler version
3.1.0
Minimized code
Output
Expectation
We should be able to constant fold
toInt
,toLong
,toDouble
,toFloat
,toByte
andtoShort
.This would also alow us to write
inline val
s withShort
andByte
types as shown bellowThis is currently impossible as we do not possess a byte or short numerical postfix in the syntax.
The text was updated successfully, but these errors were encountered: