summaryrefslogtreecommitdiff
path: root/plugins/kotlin/idea/tests/testData/quickfix/addElseBranchToIf/inElvisWithoutThen.kt
blob: e389d2e9bbef8ebf34f4d388e2e2466a1afb5d30 (plain)
1
2
3
4
5
6
7
8
9
// "Add else branch" "false"
// ACTION: Introduce local variable
// ACTION: Remove braces from 'while' statement

fun foo(x: String?) {
    while (true) {
        x ?: i<caret>f (x == null)
    }
}