trying to use `sealed interface`, Idea's popup say...
# getting-started
e
trying to use
sealed interface
, Idea's popup says
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
I see
buildSrc
, I assume this is using the
kotlin-dsl
plugin?
it forces
languageVersion = "1.4"
to maintain compatibility with existing Gradle build scripts
e
yes, indeed
well, that explains it thanks!