elect
11/05/2022, 4:49 AMsealed interface
, Idea's popup says
The feature "sealed interfaces" is only available since language version 1.5then I click it and in my
build.gradle.kts
it adds
val compileKotlin: KotlinCompile by tasks
compileKotlin.kotlinOptions {
languageVersion = "1.5"
}
but sealed
is still marked as error and compiling fails:
> Task buildSrccompileKotlin FAILED
3 actionable tasks: 1 executed, 2 up-to-date
e: /home/elect/IdeaProjects/vkk/buildSrc/src/main/kotlin/vkk/parsing.kt: (79, 1): The feature "sealed interfaces" is only available since language version 1.5
ephemient
11/05/2022, 4:54 AMbuildSrc
, I assume this is using the kotlin-dsl
plugin?ephemient
11/05/2022, 4:54 AMlanguageVersion = "1.4"
to maintain compatibility with existing Gradle build scriptselect
11/05/2022, 9:53 AMelect
11/05/2022, 9:53 AM