Files
kotlin-fork/idea/testData/codeInsight/codeTransformations/assignmentWithIfExpressionToStatement/simpleIfWithoutAssignment.kt
T

12 lines
161 B
Kotlin

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