Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Suggestion] Suppresses KMP "actual" and "expect" class warnings #1008

Closed
naoele opened this issue Sep 8, 2024 · 1 comment · Fixed by #1009
Closed

[Suggestion] Suppresses KMP "actual" and "expect" class warnings #1008

naoele opened this issue Sep 8, 2024 · 1 comment · Fixed by #1009

Comments

@naoele
Copy link
Contributor

naoele commented Sep 8, 2024

Overview

Although it may be a low priority,
the official Kotlin documentation has a setting to suppress warnings for the "actual" and "expect" classes.

Screenshot 2024-09-08 20 27 00

Problem description:

'expect'/'actual' classes (including interfaces, objects, annotations, enums, and 'actual' typealiases) are in Beta. You can use -Xexpect-actual-classes flag to suppress this warning. Also see: https://youtrack.jetbrains.com/issue/KT-61573

https://kotlinlang.org/docs/multiplatform-expect-actual.html#expected-and-actual-classes

kotlin {
    compilerOptions {
        // Common compiler options applied to all Kotlin source sets
        freeCompilerArgs.add("-Xexpect-actual-classes")
    }
}

Can we apply this to this project?

@naoele
Copy link
Contributor Author

naoele commented Sep 8, 2024

I will do this task 🙋

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant