Files
kotlin-fork/idea/testData/codeInsight/codeTransformations/ifStatementWithAssignmentsToExpression/simpleIfWithoutTerminatingAssignment.kt
T

14 lines
219 B
Kotlin

// IS_APPLICABLE: false
fun test(n: Int): String {
var res: String
<caret>if (n == 1) {
res = "one"
println("***")
} else {
println("***")
res = "two"
}
return res
}