summaryrefslogtreecommitdiff
path: root/plugins/kotlin/idea/tests/testData/quickfix/when/addRemainingBranchesAnotherPackageAll.before.Main.kt
blob: 73ef8b7e85c4fe5ecad34aa4294abffcbd7dc3e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
// "Add remaining branches with * import" "true"
// ERROR: 'when' expression must be exhaustive, add necessary 'RED', 'GREEN', 'BLUE' branches or 'else' branch instead

package u

import e.getOwnEnum

fun mainContext() {
    val ownLocal = getOwnEnum()
    <caret>when (ownLocal) {}
}