working on k2 upgrade, and im getting `Named argum...
# compose-desktop
a
working on k2 upgrade, and im getting
Named arguments are prohibited for function types.
for composable functions. I must be missing something, theres no way we're restricting named params for compose right?
This is whats causing me problems, I have a type alias for a composable function type that can be passed in:
Copy code
typealias EntityUi<T> = @Composable (
	modifier: Modifier,
	entityConflict: ProjectSync.EntityConflict<T>,
	component: ProjectSync
) -> Unit
Any usage of that errors if I use named arguments
e
I think there was a change in Kotlin sometime in the past year or two that doesn't allow function types to have named arguments
Actually looks like it was in the Compose Compiler 1.5.0 where the release notes mention:
Named arguments for
@Composable
lambda calls have been deprecated. This feature is relying on internal compiler APIs and will not be supported by K2.
😢 1
304 Views