Test for getters/setters added

This commit is contained in:
Konstantin Anisimov
2016-11-15 16:36:48 +03:00
committed by vvlevchenko
parent f393dc3a03
commit f80697817e
5 changed files with 41 additions and 4 deletions
@@ -1,6 +1,9 @@
class fields(a:Int) {
public val b:Int
get() = getB()
private var globalValue = 1
var global:Int
get() = globalValue
set(value:Int) {globalValue = value}
external fun getB():Int
fun globalTest(i:Int):Int {
global += i
return global
}