The feature "sealed interfaces" is only available since language version 1.5
then I click it and in my
build.gradle.kts
it adds
Copy code
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
e
ephemient
11/05/2022, 4:54 AM
I see
buildSrc
, I assume this is using the
kotlin-dsl
plugin?
ephemient
11/05/2022, 4:54 AM
it forces
languageVersion = "1.4"
to maintain compatibility with existing Gradle build scripts