Support custom accessors for top-level properties in scripts.

This commit is contained in:
Dmitry Petrov
2017-01-24 10:29:34 +03:00
parent ab2448307e
commit a974ed1049
25 changed files with 750 additions and 47 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
public var inc: Int = 0;
public var inc: Int = 0
public var propInc: Int = 0
get() {++inc; return field}
@@ -7,9 +7,9 @@ public var propInc: Int = 0
field = a
}
public var dec: Int = 0;
public var dec: Int = 0
public var propDec: Int = 0;
public var propDec: Int = 0
get() { --dec; return field}
set(a: Int) {
--dec