KT-23397 Optimize out field for property delegate when it's safe (JVM)
This commit is contained in:
committed by
teamcity
parent
9ee0268197
commit
65b2cee913
+14
@@ -0,0 +1,14 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// CHECK_BYTECODE_LISTING
|
||||
|
||||
// MODULE: lib
|
||||
// FILE: file1.kt
|
||||
val impl = 123
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: file2.kt
|
||||
operator fun Any?.getValue(thisRef: Any?, property: Any?) = "OK"
|
||||
|
||||
val s: String by impl
|
||||
|
||||
fun box() = s
|
||||
Reference in New Issue
Block a user