Files
kotlin-fork/idea/testData/quickfix/when/addRemainingBranchesEnumImport2.kt
T
Mikhail Glukhikh ef094e78e3 Add when branches (minor): 'with import' -> 'with * import'
Change name of quick-fix to more descriptive one
2018-08-20 13:21:18 +03:00

16 lines
221 B
Kotlin
Vendored

// "Add remaining branches with * import" "true"
// WITH_RUNTIME
import Foo.*
enum class Foo {
A, B, C
}
class Test {
fun foo(e: Foo) {
when<caret> (e) {
A, Foo.B -> TODO()
}
}
}