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

27 lines
368 B
Kotlin
Vendored

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