"field": deprecated warnings introduced, compiler tests migrated to the new syntax
This commit is contained in:
committed by
Mikhail Glukhikh
parent
028e0ec59a
commit
a1e3471d92
+1
-1
@@ -2,7 +2,7 @@ class Test {
|
||||
companion object {
|
||||
public val prop: Int = 0
|
||||
get() {
|
||||
return $prop
|
||||
return field
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ class Test {
|
||||
companion object {
|
||||
public var prop: Int = 0
|
||||
set(i : Int) {
|
||||
$prop = i
|
||||
field = i
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ interface Test {
|
||||
companion object {
|
||||
public val prop: Int = 0
|
||||
get() {
|
||||
return $prop
|
||||
return field
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ interface Test {
|
||||
companion object {
|
||||
public var prop: Int = 0
|
||||
set(i : Int) {
|
||||
$prop = i
|
||||
field = i
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user