Hamza
05/16/2020, 9:40 AMKProperty<Type, Field>, is it possible for me to get the specified field of Type?
so like if we have
data class Foo(bar: String)
fun main() {
val foo = Foo("baz")
val whatWeWant = Foo::bar
println(foo.(whatWeWant)) // prints baz. unknown syntax
}christophsturm
05/16/2020, 9:49 AMwhatWeWant.getter.call(foo)Hamza
05/16/2020, 9:49 AM