Expect/actual are in beta, but should intermediate...
# eap
h
Expect/actual are in beta, but should intermediate source sets with expect/actual declaration still work with Kotlin 2.0 (2.0.0-RC2), like it did with 1.9.23?
youtrack 1
o
you need to replace
withLinux
and
withApple
with
group("linux")
and
group("apple")
- otherwise you create separate
posix
source set which depends directly on all linux and apple targets, and not their intermediate source sets
💡 1
h
Thanks, this works! Still curious, why I do need to change it now, bug or feature? 😄
o
I would think of it as a
feature in experimental API
🙂 yeah, it's a bit confusing, probably calling functions
withLinuxTargets
(and so on) would be better But probably it would be nice to create an YT issue about this confusion, as I've already answered several times exactly on the same question 🙃
h
Do you (Kotlin build tools team) still need another issue?
o
IMO (answer of KMP enthusiast), it would be enough just to comment in the issue about it may be @tapchicoma thinks different 🙃
t
please open an issue with repro - we will evaluate whether it is bug or not
actually adding comment also should be fine
👍 1
fyi: this is an experimental feature and we will not fix it in 2.0.0 release.
h
Okay, I am fine too. Excited to see some improvements/clarifications in the future 🙂