mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
16 lines
212 B
Kotlin
Vendored
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
|