https://kotlinlang.org logo
a

Animesh Sahu

12/11/2020, 3:13 PM
Is there no literals for
Short
? In other words, we aren't able to make compile time constants for Shorts?
e

ephemient

12/11/2020, 5:53 PM
there's no literal syntax,
0.toShort()
is recognized by the compiler as a compile-time constant
a

Animesh Sahu

12/12/2020, 3:20 AM
Ohh, thanks! I didn't realized it, since it doesn't work for
String.trimMargin()
😛
e

ephemient

12/12/2020, 3:59 AM