mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
15 lines
317 B
Kotlin
15 lines
317 B
Kotlin
// "class org.jetbrains.kotlin.idea.quickfix.LiftAssignmentOutOfTryFix" "false"
|
|
// ACTION: Change to 'var'
|
|
// ERROR: Val cannot be reassigned
|
|
// ERROR: Val cannot be reassigned
|
|
// WITH_STDLIB
|
|
|
|
fun foo() {
|
|
val x = 1
|
|
try {
|
|
val x = 2
|
|
x = 3
|
|
} catch(e: Exception) {
|
|
<caret>x = 4
|
|
}
|
|
} |