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

21 lines
357 B
Kotlin

fun test(n: Int): String {
var res: String
<caret>res = if (n == 1) {
if (3 > 2) {
println("***")
"one"
} else {
println("***")
"???"
}
} else if (n == 2) {
println("***")
"two"
} else {
println("***")
"too many"
}
return res
}