Files
kotlin-fork/compiler/testData/codegen/box/elvis/primitive.kt
T
2018-06-09 19:15:38 +03:00

8 lines
186 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
fun box(): String {
if ((42 ?: 239) != 42) return "Fail Int"
if ((42.toLong() ?: 239.toLong()) != 42.toLong()) return "Fail Long"
return "OK"
}