Hi, I am getting this error: `e: org.jetbrains.k...
# announcements
p
Hi, I am getting this error:
e: org.jetbrains.kotlin.codegen.CompilationException: Back-end (JVM) Internal error: Failed to generate expression: KtProperty
In the code below:
Copy code
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
a
Yes, this is a known bug in the compiler: https://youtrack.jetbrains.com/issue/KT-21778
p
Thank you @Alexey Belkov [JB]