https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
r

Robert Munro

01/12/2022, 12:13 PM
i am trying to opt-in for
@ExperimentalTime
in my multi-platform module - but the following doesnt work :
Copy code
sourceSets {
    all {
        languageSettings.optIn("kotlin.time.ExperimentalTime")
    }
}
languageSettings
cant be found
Copy code
languageSettings.optIn("kotlin.time.ExperimentalTime")
                   ^ Unresolved reference: languageSettings
anyine know what am i missing? this seems to be exactly as per the documentation page https://kotlinlang.org/docs/opt-in-requirements.html#module-wide-opt-in i'm updating to
1.6.10
j

Javier

01/12/2022, 12:20 PM
this is working for me
1
3 Views