Files
kotlin-fork/idea/testData/quickfix/when/addRemainingBranchesAnotherPackage.after.kt
T
Mikhail Glukhikh b031e34f8d Add when branches: include auto-import
Before this commit, enum / sealed class to add was not imported so
user had to import them himself. Now everything is auto-imported.
Separate "add with import" is kept but * import is now in mind there.
#KT-22330 Fixed
#KT-22354 Fixed
EA-108090 Fixed
2018-08-20 13:21:17 +03:00

15 lines
259 B
Kotlin
Vendored

// "Add remaining branches" "true"
package u
import e.OwnEnum
import e.getOwnEnum
fun mainContext() {
val ownLocal = getOwnEnum()
when (ownLocal) {
OwnEnum.RED -> TODO()
OwnEnum.GREEN -> TODO()
OwnEnum.BLUE -> TODO()
}
}