Why doesn't this work:
var color: Int = 0xFF0000FF
and why do I have to call toInt()
var color: Int = 0xFF0000FF.toInt()
Why doesn't this work:
var color: Int = 0xFF0000FF
and why do I have to call toInt()
var color: Int = 0xFF0000FF.toInt()
This is a bug in the compiler, feel free to vote / watch it: https://youtrack.jetbrains.com/issue/KT-2780