Files
openide/plugins/kotlin/idea/tests/testData/quickfix/when/addRemainingBranchesGeneric.kt.after
aleksandrina-streltsova 63191ad02b [kotlin] Fix rendering of missing branches in AddRemainingWhenBranches
KTIJ-30496

GitOrigin-RevId: 4e33efd8dc48ca0f51fddd95d3b70d7df4a82a60
2024-07-10 13:44:44 +03:00

18 lines
591 B
Plaintext

// "Add remaining branches" "true"
// ERROR: Unresolved reference: TODO
// ERROR: Unresolved reference: TODO
sealed class Base<U, V, W> {
fun foo(it: Base<U, V, W>) {
when (it) {
is Derived -> TODO()
is Generic<*, *> -> TODO()
}
}
}
class Derived<U, V>: Base<U, V, Int>()
class Generic<V, T>: Base<Int, V, String>()
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddWhenRemainingBranchesFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.AddWhenRemainingBranchFixFactories$AddRemainingWhenBranchesQuickFix