Files
kotlin-fork/idea/testData/quickfix/when/addRemainingBranchesSealedBackTicks.kt
T
2021-05-11 21:42:45 +02:00

17 lines
325 B
Kotlin
Vendored

// "Add remaining branches" "true"
// WITH_RUNTIME
sealed class FooSealed
object A: FooSealed()
object B: FooSealed()
object `C`: FooSealed()
class D: FooSealed()
class `true`: FooSealed()
class `false`: FooSealed()
object `null`: FooSealed()
fun test(foo: FooSealed?) = <caret>when (foo) {
A -> "A"
}
/* IGNORE_FIR */