blob: 2d7f8130a6a1c5a68df9bb03b0f3189ada071ea4 [file] [log] [blame]
// "class org.jetbrains.kotlin.idea.quickfix.LiftAssignmentOutOfTryFix" "false"
// ACTION: Change to var
// ERROR: Val cannot be reassigned
// ERROR: Val cannot be reassigned
// WITH_RUNTIME
// COMPILER_ARGUMENTS: -XXLanguage:-NewInference
fun foo() {
val x = 1
try {
val x = 2
x = 3
} catch(e: Exception) {
<caret>x = 4
}
}