Files
kotlin/compiler/testData/codegen/bytecodeText/localInitializationLVT/generics.kt
Ilmir Usmanov 1d52fb2e26 Fix test data
2018-12-28 19:51:59 +03:00

18 lines
263 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
inline fun <reified T> foo(default: T): T {
val t: T
run {
t = default
}
return t
}
fun test() {
foo(0.0f)
}
// two in foo and two in test
// 4 ASTORE 2
// 1 LOCALVARIABLE t\$iv Ljava/lang/Object; L3 L13 2