KT-37024 Optimized delegated property metadata generation in inline fun

This commit is contained in:
Dmitry Petrov
2020-03-04 14:51:40 +03:00
parent 0be5a82460
commit 3bf2c17f9e
9 changed files with 79 additions and 10 deletions
@@ -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"
}