Why doesn't this work:
var color: Int = 0xFF0000FF
为什么我要打toInt()
var color: Int = 0xFF0000FF.toInt()
Why doesn't this work:
var color: Int = 0xFF0000FF
为什么我要打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