```enum class FakeApp(val title: String, val icon:...
# compose-web
m
Copy code
enum class FakeApp(val title: String, val icon: @Composable () -> Unit, val content: @Composable () -> Unit) {
    SYSTEM_INFO("System Info", ::SystemInfoIcon, ::SystemInfoApp),
    ABOUT_ME("About Me", ::AboutIcon, ::AboutApp),
    ;
}
results in
Copy code
Reference to function 'SystemInfoIcon' can not be evaluated: The call site provides 1 more value argument(s) than the function expects
IrLinkageError: Reference to function 'SystemInfoIcon' can not be evaluated: The call site provides 1 more value argument(s) than the function expects
How do I fix this?
o
Does it work for k/jvm targets? Or is the issue only on k/wasm or k/js target? I guess a workaround would be to no use the function reference, but a lambda:
Copy code
SYSTEM_INFO("System Info", { SystemInfoIcon() }, { SystemInfoApp() }),
_ Could you please report it here https://youtrack.jetbrains.com/projects/CMP?