1.9.0-RC: kotlinx-coroutines-core/concurrent/src/...
contains common (expect) and platform (actual) files
#4163
Labels
kotlinx-coroutines-core/concurrent/src/...
contains common (expect) and platform (actual) files
#4163
What broke?
Our current build setup globs all of
kotlinx-coroutines-core/common/src/...
andkotlinx-coroutines-core/concurrent/src/...
to pass as-Xcommon-srcs
. When we do this with-language-version=2.0
, which is stricter about expect/actual declarations, there's aEXPECT_AND_ACTUAL_IN_THE_SAME_MODULE
error forLockFreeLinkedListNode
.The problem is that there are some files from
kotlinx-coroutines-core/concurrent/src/...
that must be-Xcommon-srcs
(expects) and some that must not be (actuals). These files shouldn't be mixed together.Ideally, all expect files would be under a single root, such as
kotlinx-coroutines-core/common/src/...
.PS: What naming convention is
Builders.concurrent.kt
? It looks like someone wantedBuilders.common.kt
.Did I check that setting the version to the latest stable release fixes the problem?
Yes.
The text was updated successfully, but these errors were encountered: