diff --git a/idea/testData/quickfix/assignToProperty/differentNameProperty.kt b/idea/testData/quickfix/assignToProperty/differentNameProperty.kt index 60c793c0eae..4414612fe6b 100644 --- a/idea/testData/quickfix/assignToProperty/differentNameProperty.kt +++ b/idea/testData/quickfix/assignToProperty/differentNameProperty.kt @@ -1,4 +1,5 @@ // "Assign to property" "false" +// ACTION: Convert assignment to assignment expression // ERROR: Val cannot be reassigned class Test { var bar = 1 diff --git a/idea/testData/quickfix/assignToProperty/differentNameProperty2.kt b/idea/testData/quickfix/assignToProperty/differentNameProperty2.kt index 9a8400d8e5e..340780d13af 100644 --- a/idea/testData/quickfix/assignToProperty/differentNameProperty2.kt +++ b/idea/testData/quickfix/assignToProperty/differentNameProperty2.kt @@ -1,4 +1,5 @@ // "Assign to property" "false" +// ACTION: Convert assignment to assignment expression // ERROR: Val cannot be reassigned class Test(var bar: Int) { fun test(foo: Int) { diff --git a/idea/testData/quickfix/assignToProperty/differentTypeProperty.kt b/idea/testData/quickfix/assignToProperty/differentTypeProperty.kt index cd7a4782d81..9e08833b9b8 100644 --- a/idea/testData/quickfix/assignToProperty/differentTypeProperty.kt +++ b/idea/testData/quickfix/assignToProperty/differentTypeProperty.kt @@ -1,4 +1,5 @@ // "Assign to property" "false" +// ACTION: Convert assignment to assignment expression // ERROR: Val cannot be reassigned class Test { var foo = "1" diff --git a/idea/testData/quickfix/assignToProperty/differentTypeProperty2.kt b/idea/testData/quickfix/assignToProperty/differentTypeProperty2.kt index 696791dcd0f..76f69e95bae 100644 --- a/idea/testData/quickfix/assignToProperty/differentTypeProperty2.kt +++ b/idea/testData/quickfix/assignToProperty/differentTypeProperty2.kt @@ -1,4 +1,5 @@ // "Assign to property" "false" +// ACTION: Convert assignment to assignment expression // ERROR: Val cannot be reassigned class Test(var foo: String) { fun test(foo: Int) { diff --git a/idea/testData/quickfix/assignToProperty/noProperty.kt b/idea/testData/quickfix/assignToProperty/noProperty.kt index de3079128ed..ec5aee9c580 100644 --- a/idea/testData/quickfix/assignToProperty/noProperty.kt +++ b/idea/testData/quickfix/assignToProperty/noProperty.kt @@ -1,4 +1,5 @@ // "Assign to property" "false" +// ACTION: Convert assignment to assignment expression // ERROR: Val cannot be reassigned class Test(foo: Int) { fun test(foo: Int) { diff --git a/idea/testData/quickfix/assignToProperty/valProperty.kt b/idea/testData/quickfix/assignToProperty/valProperty.kt index 8e54bf9b5ab..0026aabdaf0 100644 --- a/idea/testData/quickfix/assignToProperty/valProperty.kt +++ b/idea/testData/quickfix/assignToProperty/valProperty.kt @@ -1,4 +1,5 @@ // "Assign to property" "false" +// ACTION: Convert assignment to assignment expression // ERROR: Val cannot be reassigned class Test { val foo = 1 diff --git a/idea/testData/quickfix/assignToProperty/valProperty2.kt b/idea/testData/quickfix/assignToProperty/valProperty2.kt index ca65b1989f0..01a6f9e8673 100644 --- a/idea/testData/quickfix/assignToProperty/valProperty2.kt +++ b/idea/testData/quickfix/assignToProperty/valProperty2.kt @@ -1,4 +1,5 @@ // "Assign to property" "false" +// ACTION: Convert assignment to assignment expression // ERROR: Val cannot be reassigned class Test(val foo: Int) { fun test(foo: Int) { diff --git a/idea/testData/quickfix/changeToMutableCollection/set.kt b/idea/testData/quickfix/changeToMutableCollection/set.kt index b339396a22d..84fcb5fd618 100644 --- a/idea/testData/quickfix/changeToMutableCollection/set.kt +++ b/idea/testData/quickfix/changeToMutableCollection/set.kt @@ -1,5 +1,6 @@ // "Change type to MutableSet" "false" // DISABLE-ERRORS +// ACTION: Convert assignment to assignment expression // ACTION: Replace overloaded operator with function call // WITH_RUNTIME fun main() { diff --git a/idea/testData/quickfix/createFromUsage/createFunction/call/notExactArgument.kt b/idea/testData/quickfix/createFromUsage/createFunction/call/notExactArgument.kt index 7b714e2855c..a9d3f537109 100644 --- a/idea/testData/quickfix/createFromUsage/createFunction/call/notExactArgument.kt +++ b/idea/testData/quickfix/createFromUsage/createFunction/call/notExactArgument.kt @@ -1,4 +1,5 @@ // "Create function 'synchronized'" "false" +// ACTION: Convert assignment to assignment expression // ACTION: Convert expression to 'Int' // ACTION: Round using roundToInt() // ERROR: Type mismatch: inferred type is Float but Int was expected diff --git a/idea/testData/quickfix/createFromUsage/createVariable/parameter/assignedInFun.kt b/idea/testData/quickfix/createFromUsage/createVariable/parameter/assignedInFun.kt index 67b55ea89cf..5fc6f3ddcb0 100644 --- a/idea/testData/quickfix/createFromUsage/createVariable/parameter/assignedInFun.kt +++ b/idea/testData/quickfix/createFromUsage/createVariable/parameter/assignedInFun.kt @@ -2,6 +2,7 @@ // ACTION: Create local variable 'foo' // ACTION: Create property 'foo' // ACTION: Rename reference +// ACTION: Convert assignment to assignment expression // ERROR: Unresolved reference: foo fun test(n: Int) { diff --git a/idea/testData/quickfix/removeRedundantAssignment/notRedundant.kt b/idea/testData/quickfix/removeRedundantAssignment/notRedundant.kt index 5a302b61634..b507ff1c1c3 100644 --- a/idea/testData/quickfix/removeRedundantAssignment/notRedundant.kt +++ b/idea/testData/quickfix/removeRedundantAssignment/notRedundant.kt @@ -1,4 +1,5 @@ // "Remove redundant assignment" "false" +// ACTION: Convert assignment to assignment expression fun foo(): Int { var i = 1 i = 2 diff --git a/idea/testData/quickfix/variables/changeMutability/funParameter.kt b/idea/testData/quickfix/variables/changeMutability/funParameter.kt index 16b28915729..a7304a11bed 100644 --- a/idea/testData/quickfix/variables/changeMutability/funParameter.kt +++ b/idea/testData/quickfix/variables/changeMutability/funParameter.kt @@ -1,4 +1,5 @@ // "Change to var" "false" +// ACTION: Convert assignment to assignment expression // ACTION: Remove redundant assignment // ERROR: Val cannot be reassigned fun fun1(i: Int) {