https://kotlinlang.org logo
Title
a

arturro

07/13/2017, 2:22 PM
I am asking because I can do that:
this.javaClass.kotlin.memberProperties.find{ it.name == "test" }!!.get(this)
but I cannot do that:
this::class.memberProperties.find{ it.name == "test" }!!.get(this)
        //ErrorKotlin: Out-projected type 'KProperty1<out T, Any?>' prohibits the use of 'public abstract fun get(receiver: T): R defined in kotlin.reflect.KProperty1'
And I want to understand it
m

marstran

07/13/2017, 2:28 PM
arturro: What is
this
here?
a

arturro

07/13/2017, 2:30 PM
Any class, this is just example, I use it for data class