Amend test data after adding Convert assignment to assignment expression intention
Relates to #KT-22420
This commit is contained in:
@@ -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,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) {
|
||||
|
||||
Reference in New Issue
Block a user