https://kotlinlang.org logo
Title
p

Pavel S

04/17/2023, 4:05 PM
When executing project level gradle tasks (like
./gradlew build
,
./gradlew test
) the build fails with
Expected class *class name* has no actual declaration in module *module name* for JVM```
and
Expected class *class name* has no actual declaration in module *module name* for Native
, ``` although all the actual classes are declared in all the sourcesets. I’ve found this issue which seems to be not fixed, and this can be suppressed with
@Suppress("NO_ACTUAL_FOR_EXPECT")
but it’s impossible for the generated classes. Also, it seems that in most popular opensource projects this issue doesn’t occur
Also, if applied to each module individually it fails only on those that have at least one expect/actual classes/methods/properties