11a3482970
#KT-38632 Fixed
16 lines
365 B
Kotlin
Vendored
16 lines
365 B
Kotlin
Vendored
// "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
|
|
}
|
|
} |