"field": deprecated warnings introduced, compiler tests migrated to the new syntax

This commit is contained in:
Mikhail Glukhikh
2015-09-17 18:58:30 +03:00
committed by Mikhail Glukhikh
parent 028e0ec59a
commit a1e3471d92
64 changed files with 154 additions and 149 deletions
@@ -14,7 +14,7 @@ class A {
var r2: Int = 1;
get() {
holder += "getR2"
return $r2
return field
}
fun test2() : Int {
@@ -26,7 +26,7 @@ class A {
var r3: Int = 1;
set(p: Int) {
holder += "setR3"
$r3 = p
field = p
}
fun test3() : Int {
@@ -38,11 +38,11 @@ class A {
var r4: Int = 1;
get() {
holder += "getR4"
return $r4
return field
}
set(p: Int) {
holder += "setR4"
$r4 = p
field = p
}
fun test4() : Int {
+4 -4
View File
@@ -12,7 +12,7 @@ object A {
var r2: Int = 1;
get() {
holder += "getR2"
return $r2
return field
}
fun test2() : Int {
@@ -24,7 +24,7 @@ object A {
var r3: Int = 1;
set(p: Int) {
holder += "setR3"
$r3 = p
field = p
}
fun test3() : Int {
@@ -36,11 +36,11 @@ object A {
var r4: Int = 1;
get() {
holder += "getR4"
return $r4
return field
}
set(p: Int) {
holder += "setR4"
$r4 = p
field = p
}
fun test4() : Int {