Hi as its mentioned in docs to test some of experi...
# eap
s
Hi as its mentioned in docs to test some of experimental features in kotlin 2.2.20, we can add freeCompileArgs and then test them, but i tried adding this :
Copy code
compilerOptions {
        freeCompilerArgs.add("-Xdata-flow-based-exhaustiveness")
    }
But still not able to test data-flow-based-exhaustiveness, it still shows same old error: Add remaining branches Similarly for adding language version as 2.3.0 in compilerOptions, that also does not apply:
Copy code
compilerOptions {
    languageVersion.set(org.jetbrains.kotlin.gradle.dsl.KotlinVersion.KOTLIN_2_3)
}
How i can test them?
i
Hi! Do you see in IDE or during compilation?
s
I checked In IDE with simple kotlin file, error warnings were still there.
i
The IDE support for
Data-flow-based exhaustiveness checks for when expressions
was added in 2025.3 EAP.
s
Ok thanks. I think we can add these points as well in docs that these features are available after IDE version 2025.3 , may be something like this. Thanku
👍 1