Files
kotlin-fork/idea/testData/quickfix/when/addRemainingBranchesMissingLeftBracket.fir.kt
T
Tianyu Geng 63c65edda2 FIR IDE: AddWhenRemainingBranchFix
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.
2021-06-24 18:26:18 +02:00

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)