"field": deprecated warnings introduced, compiler tests migrated to the new syntax
This commit is contained in:
committed by
Mikhail Glukhikh
parent
028e0ec59a
commit
a1e3471d92
+2
-2
@@ -5,7 +5,7 @@ import java.util.HashSet
|
||||
val a: MutableSet<String>? = null
|
||||
get() {
|
||||
if (a == null) {
|
||||
$a = HashSet()
|
||||
field = HashSet()
|
||||
}
|
||||
return a
|
||||
}
|
||||
@@ -14,7 +14,7 @@ class R {
|
||||
val b: String? = null
|
||||
get() {
|
||||
if (b == null) {
|
||||
$b = "b"
|
||||
field = "b"
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ class A() {
|
||||
val a : A = A()
|
||||
get() {
|
||||
c0++
|
||||
return $a
|
||||
return field
|
||||
}
|
||||
|
||||
fun box() : String {
|
||||
|
||||
@@ -29,7 +29,7 @@ class A {
|
||||
get() {
|
||||
val x : Int
|
||||
doSmth(<!UNINITIALIZED_VARIABLE!>x<!>)
|
||||
return $a
|
||||
return field
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user