https://kotlinlang.org logo
#k2-early-adopters
Title
# k2-early-adopters
l

Lubomir Pisk

10/23/2023, 4:02 PM
Hi, I have a following hierarchy: androidMain: actual class Provider { actual fun convert(input: Input): String = "" } commonMain: abstract class Input expect class Provider { fun convert(input: Input): String } But build failed with: Expected convert has no actual declaration in module resource_debug for JVM. Build is successful after change data type of parameter from Input to String. Is it bug in compiler?
d

dmitriy.novozhilov

10/23/2023, 4:54 PM
Seems like a bug Which version of kotlin are you using?
l

Lubomir Pisk

10/24/2023, 10:32 AM
Kotlin "1.9.0"
d

dmitriy.novozhilov

10/24/2023, 10:35 AM
Hm, it's strange 1.9.0 should support even more than such basic cases Could you please report and issue and attach project with reproducer please?
l

Lubomir Pisk

10/24/2023, 12:48 PM
And abstract class (Input ) is ok?
d

dmitriy.novozhilov

10/24/2023, 12:53 PM
Yes, it's fine The same code as compiler test successfully compiles, so most likely the problem somewhere in your project setup It may be a misconfiguration or problem inside Kotlin Gradle plugin or Android Gradle plugin
l

Lubomir Pisk

10/28/2023, 7:09 AM
Does K2 support Compose Multiplatform 1.5.1? When Compose is removed from Gradle then build is ok.
@dmitriy.novozhilov
d

dmitriy.novozhilov

11/01/2023, 8:11 AM
I don't know about particular Compose versions cc @shikasd
s

shikasd

11/01/2023, 10:31 AM
Not sure about multiplatform Compose versions as well :)
I think if your build is compatible with 1.9, it should support K2 on /some/ level. We had some known issues related to functions being incompatible, but nothing with this message.