Files
kotlin-fork/compiler/testData/ir/irText/declarations/delegatedProperties.kt.txt
T
2020-11-26 00:14:13 +03:00

53 lines
1.2 KiB
Plaintext
Vendored

val test1: Int /* by */
field = lazy<Int>(initializer = local fun <anonymous>(): Int {
return 42
}
)
get(): Int {
return #test1$delegate.getValue<Int>(thisRef = null, property = ::test1)
}
class C {
constructor(map: MutableMap<String, Any>) /* primary */ {
TODO("IrDelegatingConstructorCall")
/* InstanceInitializerCall */
}
val map: MutableMap<String, Any>
field = map
get
val test2: Int /* by */
field = lazy<Int>(initializer = local fun <anonymous>(): Int {
return 42
}
)
get(): Int {
return #test2$delegate.getValue<Int>(thisRef = <this>, property = ::test2)
}
var test3: Any /* by */
field = <this>.<get-map>()
get(): Any {
return #test3$delegate.getValue<Any, Any>(thisRef = <this>, property = ::test3)
}
set(<set-?>: Any) {
return #test3$delegate.setValue<Any>(thisRef = <this>, property = ::test3, value = <set-?>)
}
}
var test4: Any /* by */
field = hashMapOf<String, Any>()
get(): Any {
return #test4$delegate.getValue<Any, Any>(thisRef = null, property = ::test4)
}
set(<set-?>: Any) {
return #test4$delegate.setValue<Any>(thisRef = null, property = ::test4, value = <set-?>)
}