Files
kotlin/compiler/testData/codegen/bytecodeText/localInitializationLVT/genericsVar.kt
Ilmir Usmanov 20e4efaeab Fix test data
2019-02-01 17:33:49 +03:00

18 lines
281 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
inline fun <reified T> foo(default: T): T {
var t: T
run {
t = default
}
return t
}
fun test() {
foo(0.0f)
}
// two in foo and two in test
// 2 ASTORE 2
// 1 LOCALVARIABLE t\$iv Lkotlin/jvm/internal/Ref\$ObjectRef; L3 L.* 2