Hi, I have a following hierarchy: androidMain: a...
# k2-adopters
l
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
Seems like a bug Which version of kotlin are you using?
l
Kotlin "1.9.0"
d
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
And abstract class (Input ) is ok?
d
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
Does K2 support Compose Multiplatform 1.5.1? When Compose is removed from Gradle then build is ok.
@dmitriy.novozhilov
d
I don't know about particular Compose versions cc @shikasd
s
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.