Closed eymar closed 2 months ago
Marking it as a regression, because there is no issue when using kotlin 1.9.2x My guess is that the issue could be on Kotlin side, but only an investigation can confirm.
Another possible reason: Maybe we skip 'expect' classes/functions in our lowering AddHiddenFromObjC. And k/native relies on them to create the exports in 2.0?
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.
When updating the
jetsnack
example to Kotlin 2, the iOS target won't compile:Affected platforms
Versions
To Reproduce
The workaround is to add:
on the actual class., or make the class internal.