"field": backing field usage deprecated warning, relevant diagnostics tests changed
This commit is contained in:
@@ -2,5 +2,5 @@
|
||||
|
||||
class WithC() {
|
||||
val a = 1
|
||||
val b = $a // error here, but must not be
|
||||
val b = <!BACKING_FIELD_USAGE_DEPRECATED!>$a<!> // error here, but must not be
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ class Creature() {
|
||||
var bbb : Int
|
||||
|
||||
init {
|
||||
$bbb = 1
|
||||
<!BACKING_FIELD_USAGE_DEPRECATED!>$bbb<!> = 1
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ class Creature() {
|
||||
var ccc : Int
|
||||
|
||||
init {
|
||||
$ccc = 2
|
||||
<!BACKING_FIELD_USAGE_DEPRECATED!>$ccc<!> = 2
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user