Run ❯
Get your
own
website
❯
Run Code
Ctrl+Alt+R
Change Orientation
Ctrl+Alt+O
Change Theme
Ctrl+Alt+D
Go to Spaces
Ctrl+Alt+P
fun main() { val x: Int = 5 val y: Long = x println(y) }
demo_type_conv.kt:3:17: error: type mismatch: inferred type is Int but Long was expected
val y: Long = x
^