63c65edda2
The fix reuses logic that is already available from FirWhenExhaustivenessTransformer to collect missing when branches. The current logic unfortunately uses hackyAllowRunningOnEdt to shorten the generated code.
9 lines
125 B
Kotlin
Vendored
9 lines
125 B
Kotlin
Vendored
// "Add remaining branches" "true"
|
|
// WITH_RUNTIME
|
|
|
|
sealed class A
|
|
class B : A()
|
|
|
|
fun test(a: A) {
|
|
val i = w<caret>hen (a)
|