mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
13 lines
401 B
Kotlin
13 lines
401 B
Kotlin
// "Lift assignment out of 'try' expression" "true"
|
|
// WITH_STDLIB
|
|
|
|
fun foo() {
|
|
val x: Int
|
|
try {
|
|
x = 1
|
|
} catch (e: Exception) {
|
|
<caret>x = 2
|
|
} finally {}
|
|
}
|
|
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.LiftAssignmentOutOfTryFix
|
|
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.LiftAssignmentOutOfTryFixFactory$LiftAssignmentOutOfTryFix |