mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
17 lines
238 B
Kotlin
Vendored
17 lines
238 B
Kotlin
Vendored
// IGNORE_BACKEND: 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
|