Files
Victor Petukhov 79fcfa574e [Kotlin] Remove explicit configuring of new inference in tests
GitOrigin-RevId: 9f49f700c17c7572a09f281464da0509f53e5458
2022-08-02 09:31:13 +00:00

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
}
}