pike
07/21/2017, 1:36 AMfun <R: Any?> getVal(property: String): R{
@Suppress("UNCHECKED_CAST")
return this.javaClass.kotlin.declaredMemberProperties.first { it.name == property }.get(this) as R
}
which works fine if I explicitly call it...