Amend test data after adding Convert assignment to assignment expression intention

Relates to #KT-22420
This commit is contained in:
Vladimir Dolzhenko
2020-09-03 17:59:19 +02:00
parent 16ab11289c
commit d4ef85f6c2
12 changed files with 12 additions and 0 deletions
@@ -1,4 +1,5 @@
// "Assign to property" "false"
// ACTION: Convert assignment to assignment expression
// ERROR: Val cannot be reassigned
class Test {
var bar = 1
@@ -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) {
@@ -1,4 +1,5 @@
// "Assign to property" "false"
// ACTION: Convert assignment to assignment expression
// ERROR: Val cannot be reassigned
class Test {
var foo = "1"
@@ -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) {
+1
View File
@@ -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) {
@@ -1,4 +1,5 @@
// "Assign to property" "false"
// ACTION: Convert assignment to assignment expression
// ERROR: Val cannot be reassigned
class Test {
val foo = 1
@@ -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) {