Fixed
Status Update
Comments
si...@gmail.com <si...@gmail.com> #2
Also, type inference breaks, if you add @JvmName("brokenMangling")
public static final void AppManglingPreview(@Nullable Composer $composer, int $changed) {
library.LibraryKt.brokenMangling(0L, $composer, 0, 1).invoke() // invokes Function0 instead of Function2
}
Specifying type @Composable () -> Unit
fixes the code
as...@google.com <as...@google.com> #3
It seems like the main issue is that return type is not recognized as @Composable
in app module:
INVOKESTATIC base/BaseKt.brokenMangling-jnxo_hE (JLandroidx/compose/runtime/Composer;II)Lkotlin/jvm/functions/Function0;
as...@google.com <as...@google.com> #4
Workaround is to specify the return type on declaration side:
@Composable
fun brokenMangling(color: Color = Color.Black): @Composable () -> Unit
Description
Kotlin version: 2.0.0
:module
:app
Decompiled :library
Decompiled :app