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
+11
@@ -0,0 +1,11 @@
|
||||
// WITH_STDLIB
|
||||
// CHECK_BYTECODE_LISTING
|
||||
|
||||
class C {
|
||||
operator fun getValue(thisRef: Any?, property: Any?) =
|
||||
if (thisRef == this) "OK" else "Failed"
|
||||
|
||||
val s: String by this
|
||||
}
|
||||
|
||||
fun box() = C().s
|
||||
Reference in New Issue
Block a user