namespace properties are mostly working

This commit is contained in:
Dmitry Jemerov
2011-04-21 14:23:11 +02:00
parent c91cd748ff
commit d17f095eec
12 changed files with 216 additions and 20 deletions
@@ -0,0 +1,5 @@
private var x = 0;
fun increment(): Int {
return ++x;
}
+7
View File
@@ -0,0 +1,7 @@
var collector: String = ""
set(it) { $collector = $collector + it }
fun append(s: String): String {
collector = s;
return collector;
}