Files
kotlin-fork/compiler/testData/codegen/bytecodeText/temporaryVals/noTemporaryInCheckedCast.kt
T
Dmitry Petrov 1e5fc1c3aa JVM_IR KT-27427 use checkNotNull with message in checked casts
This would prevent extra branching in 'as <not-null-type>', which
usually would not be covered.
2021-12-30 13:41:21 +03:00

7 lines
78 B
Kotlin
Vendored

fun foo(): Any? = "abc"
fun test() = foo() as String
// 0 ASTORE
// 0 ALOAD