Kotlin / Kotlin/multiplatform-library-template
Deprecation warning "expect and corresponding actual are declared in the same module, which will be prohibited in Kotlin 2.0"
- Dominant language
- Kotlin
- Stars
- 340
- Forks
- 61
- PR merge metrics
- No merged PRs in 30d
Description
I'm getting this deprecation warning in vs code:
> Property 'secondElement': expect and corresponding actual are declared in the same module, which will be prohibited in Kotlin 2.0. See https://youtrack.jetbrains.com/issue/KT-55177
Not yet researched how to do it properly in kotlin 1 and 2, but opening this issue because I think this template should not produce warnings by default.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the expect/actual declaration for `secondElement` in the template and reproduce the warning in VS Code. Research the Kotlin 1 and Kotlin 2 requirements described by KT-55177; done means the template no longer produces this warning by default while retaining the intended multiplatform behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100