karelpeeters
11/11/2019, 6:40 PMkotlinOptions.freeCompilerArgs += "-Xuse-experimental=kotlin.contracts.ExperimentalContracts"`
To my build.gradle
, and ./gradlew build
compiles fine. Intelij still gives errors when actually trying to run code using contracts:
Error:(552, 5) Kotlin: This declaration is experimental and its usage must be marked with '@kotlin.contracts.ExperimentalContracts' or '@UseExperimental(kotlin.contracts.ExperimentalContracts::class)'
Intelij seems to at least understand that it's a compiler argument, it automatically ends up in Project settings > Modules > main > Kotlin > Additional cmdline parameters. Is this just not supported right now or there another problem?Alexey Belkov [JB]
11/14/2019, 7:28 AMkarelpeeters
11/14/2019, 11:15 AM