Files
kotlin-fork/idea/testData/inspectionsLocal/liftOut/tryToAssignment/withoutTerminatingAssignment.kt
T
2017-07-11 15:14:30 +03:00

13 lines
204 B
Kotlin
Vendored

// PROBLEM: none
fun doSomething() {}
fun test() {
var res: String? = null
<caret>try {
res = "success"
} catch (e: Exception) {
res = "failure"
doSomething()
}
}