Files
kotlin-fork/idea/testData/intentions/branched/folding/ifToAssignment/simpleIfWithoutTerminatingAssignment.kt
T

17 lines
258 B
Kotlin
Vendored

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