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
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
// CHECK_BYTECODE_LISTING
|
||||
|
||||
val impl = 123
|
||||
|
||||
operator fun Any?.getValue(thisRef: Any?, property: Any?) =
|
||||
if (this == 123 && thisRef == null) "OK" else "Failed"
|
||||
|
||||
val s: String by impl
|
||||
|
||||
fun box() = s
|
||||
Reference in New Issue
Block a user