robstoll
11/02/2017, 10:28 PMinterface A {
val b: List<Int>
}
class AImpl : A {
override val b get() = throw UnsupportedOperationException("nope")
}
fun main(args: Array<String>) {
val aFun: A.() -> Unit = { println(b::size.name) }
AImpl().aFun()
}
Is there a way to get the name of b without getting the UnsupportedOpertionException?