initial support for properties backed by instance fields; some dummy code to generate primary constructor

This commit is contained in:
Dmitry Jemerov
2011-04-21 16:33:46 +02:00
parent 433c073778
commit d6611e495b
8 changed files with 81 additions and 54 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
class PrivateVar {
private var x = 0;
fun setValueOfX(val: Int) { x = val }
fun setValueOfX(aValue: Int) { x = aValue }
fun getValueOfX() = x
}