Files
kotlin-fork/compiler/testData/codegen/box/casts/unitNullableCast.kt
T
2015-03-05 11:59:23 +01:00

8 lines
116 B
Kotlin
Vendored

fun foo() {}
fun bar(): Int? = foo() as? Int
fun box(): String {
return if (bar() == null) "OK" else "fail"
}