Files
kotlin-fork/idea/testData/quickfix/when/addRemainingBranchesEnumBackTicks.kt
T
2017-08-04 20:58:46 +03:00

10 lines
183 B
Kotlin
Vendored

// "Add remaining branches" "true"
// WITH_RUNTIME
enum class FooEnum {
A, B, `C`, `true`, `false`, `null`
}
fun test(foo: FooEnum?) = <caret>when (foo) {
FooEnum.A -> "A"
}