PHondogo
05/20/2025, 6:29 AMclass Test(
val test: () -> Unit // for Jvm and WasmJs it is ok, for Js it is name collision with fun test
) {
fun test() {
test.invoke()
}
}
Why not to keep consistency across all platforms - make mangling for Js platform or forbid for all platforms.
It increases complexity when adding new platform to existing projects.
For mangling case, if someone need to keep name for Js, for example, he can use JsExport annotation.Artem Kobzar
05/20/2025, 10:24 AM