CLOVIS
05/22/2022, 3:27 PMinterface Parent {
@Composable
fun render(...)
}
class Child {
@Composable
override fun render(...)
}
Calling the render
function on a child leads to:
Uncaught TypeError: $localVariable.render$composable_49qbjn_k$ is not a function
at eval (Navigation.kt?fd6e:149:17)
After inspecting the object, its prototype has a 'render_4kj0y7_k$'
function. Did something go wrong when Compose/Kotlin mangled the object?
Adding @JvmName("render")
to the parent class changes the function name in the error message, but it doesn't change which functions the object implements (its prototype still has `'render_4kj0y7_k$'`and not 'render'
)jw
05/22/2022, 6:19 PMCLOVIS
05/22/2022, 6:54 PMcommonMain
and the implementation is in jsMain
commonMain
• Abstract method: https://kotlinlang.slack.com/archives/C01F2HV7868/p1653233265875689
• both implementations are in https://gitlab.com/opensavvy/clovis/-/blob/25-webpack/utils.ui/src/commonMain/kotlin/clovis.ui/navigation/Builders.kt
It's far from being a minimal reproduction repo though, so please tell me if you need any more infoGrégory Lureau
05/23/2022, 7:13 AMOleksandr Karpovich [JB]
05/23/2022, 9:50 AMCLOVIS
05/23/2022, 3:17 PMmain
branch (no problems there)?
Otherwise, there might be something wrong in the config somewhere