How do people do `-Xopt-in=kotlin.RequiresOptIn` i...
# multiplatform
d
How do people do
-Xopt-in=kotlin.RequiresOptIn
in multiplatform projects? IntelliJ annoyingly keeps asking me to add it but I have.
Copy code
targets.all {
        compilations.all {
            kotlinOptions {
                freeCompilerArgs = listOf("-Xopt-in=kotlin.RequiresOptIn")
            }
        }
    }
⬆️ 1
Turns out this worked.
Copy code
sourceSets.all {
            languageSettings.useExperimentalAnnotation("kotlin.RequiresOptIn")
        }
👍 1