summaryrefslogtreecommitdiff
path: root/plugins/kotlin/idea/tests/testData/quickfix/addElseBranchToIf/withoutCloseParenthesisInCondition.kt
blob: b48db8e8f5164ed6b33e6df5ede012e59a047ad5 (plain)
1
2
3
4
5
6
7
// "Add else branch" "false"
// ACTION: Replace property initializer with 'if' expression
// ERROR: 'if' must have both main and 'else' branches if used as an expression

fun foo(x: String?) {
    val a = i<caret>f (
}