KT-37024 Optimized delegated property metadata generation in inline fun
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
// WITH_RUNTIME
|
||||
// KJS_WITH_FULL_RUNTIME
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
|
||||
val log = StringBuilder()
|
||||
|
||||
inline fun test() {
|
||||
val localLazy by lazy {
|
||||
log.append("localLazy;")
|
||||
"v;"
|
||||
}
|
||||
log.append("test;")
|
||||
log.append(localLazy)
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
test()
|
||||
val t = log.toString()
|
||||
if (t != "test;localLazy;v;")
|
||||
throw AssertionError(t)
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user