Files
kotlin-fork/compiler/testData/ir/irText/declarations/classLevelProperties.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

57 lines
1.1 KiB
Plaintext
Vendored

class C {
constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
val test1: Int
field = 0
get
val test2: Int
get(): Int {
return 0
}
var test3: Int
field = 0
get
set
var test4: Int
field = 1
get
set(value: Int) {
<this>.#test4 = value
}
var test5: Int
field = 1
get
private set
val test6: Int
field = 1
get
val test7: Int /* by */
field = lazy<Int>(initializer = local fun <anonymous>(): Int {
return 42
}
)
get(): Int {
return <this>.#test7$delegate.getValue<Int>(thisRef = <this>, property = C::test7)
}
var test8: @FlexibleNullability Int? /* by */
field = hashMapOf<String, Int>()
get(): @FlexibleNullability Int? {
return <this>.#test8$delegate.getValue<@FlexibleNullability Int?, @FlexibleNullability Int?>(thisRef = <this>, property = C::test8)
}
set(<set-?>: @FlexibleNullability Int?) {
<this>.#test8$delegate.setValue<@FlexibleNullability Int?>(thisRef = <this>, property = C::test8, value = <set-?>)
}
}