Files
kotlin-fork/compiler/testData/ir/irText/declarations/delegatedProperties.fir.kt.txt
T
Dmitriy Novozhilov b454fcc1e0 [FIR] Save IR dumps to .ir.txt files instead of .txt in tests
This is needed to avoid clashes between different dumps from different
  handlers
2021-10-12 17:26:36 +03:00

49 lines
1.3 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 */ {
super/*Any*/()
/* <init>() */
}
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 <this>.#test2$delegate.getValue<Int>(thisRef = <this>, property = C::test2)
}
var test3: Any /* by */
field = <this>.<get-map>()
get(): Any {
return <this>.#test3$delegate.getValue<Any, Any>(thisRef = <this>, property = C::test3)
}
set(<set-?>: Any) {
<this>.#test3$delegate.setValue<Any>(thisRef = <this>, property = C::test3, value = <set-?>)
}
}
var test4: @FlexibleNullability Any? /* by */
field = hashMapOf<String, Any>()
get(): @FlexibleNullability Any? {
return #test4$delegate.getValue<@FlexibleNullability Any?, @FlexibleNullability Any?>(thisRef = null, property = ::test4)
}
set(<set-?>: @FlexibleNullability Any?) {
#test4$delegate.setValue<@FlexibleNullability Any?>(thisRef = null, property = ::test4, value = <set-?>)
}