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