After updating to Kotlin 2.5.0-Beta1 start getting...
# compose-web
p
After updating to Kotlin 2.5.0-Beta1 start getting errors in Compose app (Web target, Jvm target - OK) like:
Copy code
kotlin.internal.IrLinkageError: Constructor '<init>' can not be called: Constructor uses unlinked type parameter symbol 'a.b.c/SomeComposableFun|SomeComposableFun(kotlin.coroutines.SuspendFunction2<kotlin.String,kotlin.String,0:0?>;androidx.compose.ui.Modifier?;kotlin.Boolean;androidx.compose.ui.Modifier?;kotlin.String?;kotlin.Function3<a.b.c.d.e.SomeClass1,androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>?;kotlin.Long;kotlin.Function4<a.b.c.d.SomeClass2,0:0,androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>;androidx.compose.runtime.Composer?;kotlin.Int;kotlin.Int){0§<kotlin.Any>}[0]:7:8:9' declared in file file.kt
Any recommendations what can be the cause or where to dig?
k
This might need a new version of Compose
p
Isn't it bundled with Kotlin? I mean compose compiler.
Copy code
org.jetbrains.kotlin:compose-compiler-gradle-plugin:2.5.0-Beta1
p
hi! looks like compose compiler failure, could you file an issue for that case? looks like you have som nested declarations inside
SomeComposableFun
that are using generic parameters, it would be helpful to see them :)
p
Hi! Trying to extract small repro
@Pavel Shishkin may be it is smth with delegates in nested lambdas with type parameter. Added one more commit to repro project with comments