Files
kotlin-fork/idea/testData/quickfix/foldTryCatch/emptyFinally.kt
T

13 lines
196 B
Kotlin
Vendored

// "Lift assignment out of 'try' expression" "true"
// WITH_RUNTIME
fun foo() {
val x: Int
try {
x = 1
}
catch (e: Exception) {
<caret>x = 2
}
finally {}
}