e49410e07b
E.g. a statement like
var x by ::y
is semantically equivalent to
var x
get() = y
set(value) { y = value }
and thus does not need a full property reference object, or even a field
if the receiver is not bound.
#KT-39054 Fixed
#KT-47102 Fixed
9 lines
111 B
Kotlin
Vendored
9 lines
111 B
Kotlin
Vendored
// WITH_RUNTIME
|
|
class C(val x: String)
|
|
|
|
val x = "O"
|
|
val y by ::x
|
|
val z by C("K")::x
|
|
|
|
fun box(): String = y + z
|