Files
kotlin-fork/idea/testData/quickfix/foldTryCatch/shadow.kt
T
Valentin Kipyatkov 7625672914 Better test data
2016-09-23 10:07:15 +03:00

16 lines
328 B
Kotlin
Vendored

// "class org.jetbrains.kotlin.idea.quickfix.LiftAssignmentOutOfTryFix" "false"
// ACTION: Make variable mutable
// ERROR: Val cannot be reassigned
// ERROR: Val cannot be reassigned
// WITH_RUNTIME
fun foo() {
val x = 1
try {
val x = 2
x = 3
}
catch(e: Exception) {
<caret>x = 4
}
}