rrader
02/15/2019, 1:45 PMdata class Data(val a: Int)
Why Data::a does not return KProperty<Data, Int> by return KProperty<Int> ?
In first case we can write a function that receives only `Data`'s properties, something like func process(prop: KProperty<Data, Int>)ilya.gorbunov
02/15/2019, 3:26 PMData::a returns KProperty1<Data, Int>ilya.gorbunov
02/15/2019, 3:26 PMData(1)::a returns KProperty0<Int>, because it's bound to the instance Data(1)rrader
02/15/2019, 3:41 PMrrader
02/15/2019, 3:42 PMKProperty1?rrader
02/15/2019, 3:42 PMKProperty1 ?ilya.gorbunov
02/15/2019, 4:19 PMKProperty1 means that it takes one receiver parameter. A bound property is KProperty0 because it doesn't need a receiver.