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

12 lines
181 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
}
}