Add else entry for when quick fix
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// "Add else branch" "true"
|
||||
fun test() {
|
||||
val a = 12
|
||||
wh<caret>en (a) {
|
||||
in 0..11 -> { /* some code */ }
|
||||
12, 13, 14 -> { /* some code */ }
|
||||
else -> {
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// "Add else branch" "true"
|
||||
fun test() {
|
||||
val a = 12
|
||||
when (a) {
|
||||
else -> {
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// "Add else branch" "true"
|
||||
fun test() {
|
||||
val a = 12
|
||||
wh<caret>en (a) {
|
||||
in 0..11 -> { /* some code */ }
|
||||
12, 13, 14 -> { /* some code */ }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// "Add else branch" "true"
|
||||
fun test() {
|
||||
val a = 12
|
||||
wh<caret>en (a) {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user