pp.amorim
07/21/2020, 5:13 PMe: org.jetbrains.kotlin.codegen.CompilationException: Back-end (JVM) Internal error: Failed to generate expression: KtProperty
In the code below:
private val foo: Foo = object: Foo() {
override fun bar(results: Results) {
val results: List<Zed>? = safeCast(results.values)
}
private inline fun<reified T> safeCast(values: Any): List<T>? =
(values as? List<*>)?.filterIsInstance<T>()
}
Is that because the inline fun
inside the object
? Foo
is a Java abstract class
Alexey Belkov [JB]
07/22/2020, 8:40 AMpp.amorim
07/22/2020, 5:05 PM