Files
kotlin-fork/compiler/testData/codegen/box/fir/toLong.kt
T
2023-04-17 20:53:31 +00:00

20 lines
226 B
Kotlin
Vendored

// ISSUE: KT-57986
// MODULE: m1
// FILE: m1.kt
fun foo() = 42
val x = foo()
val y = x.toLong()
// MODULE: m2(m1)
// FILE: m2.kt
fun box(): String {
if (y == 42L) {
return "OK"
}
return y.toString()
}