Files
kotlin/compiler/testData/codegen/bytecodeText/checkcast/kt15411.kt
Alexander Udalov 3d9c264d63 Do not generate CHECKCAST after 'null' literal
#KT-15411 Fixed
2016-12-27 16:22:12 +03:00

16 lines
212 B
Kotlin
Vendored

// 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