https://kotlinlang.org logo
#announcements
Title
# announcements
c

Carson Graham

10/27/2019, 6:19 PM
hey I was wondering how I would disable warnings about using unsigned types? I know that they are experemental, I don't want to add @ExperimentalUnsignedTypes hundreds of times in my code. I've tried adding
Copy code
tasks.withType<KotlinCompile> {
    kotlinOptions.jvmTarget = "1.8"
    kotlinOptions.freeCompilerArgs += "-Xexperimental=kotlin.ExperimentalUnsignedTypes"
}
this to my build.gradle.kts, but it still warns me in intellij
k

kevinherron

10/27/2019, 8:21 PM
should be
"-Xuse-experimental=kotlin.ExperimentalUnsignedTypes"
c

Carson Graham

10/27/2019, 9:28 PM
yup, that worked great. Thanks!
2 Views