Files
kotlin-fork/idea/idea-completion/testData/smart/whenEntry/4.kt
T
Valentin Kipyatkov bb808b5620 Created module idea-test-framework and moved classes needed for idea tests there
Moved tests for completion and their test data into module idea-completion
2015-04-14 18:53:01 +03:00

18 lines
268 B
Kotlin

enum class E {
A
B
C
}
fun foo(e: E) {
when(e) {
<caret>
else -> x()
}
}
// EXIST: { lookupString:"A", itemText:"E.A" }
// EXIST: { lookupString:"B", itemText:"E.B" }
// EXIST: { lookupString:"C", itemText:"E.C" }
// ABSENT: else