Files
kotlin-fork/compiler/testData/codegen/bytecodeText/checkcast/kt15411.kt
T
2020-02-14 14:07:03 +03:00

18 lines
305 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
// TODO KT-36650 Don't generate CHECKCAST on null values in JVM_IR
// KT-15411 Unnecessary CHECKCAST bytecode when dealing with null
fun test1(): String? {
return null
}
fun test2(): BooleanArray? {
return null
}
fun test3(): Unit? {
return null
}
// 0 CHECKCAST