Primary constructor parameters supproted properly

This commit is contained in:
Andrey Breslav
2011-03-24 19:50:44 +03:00
parent 120a03ccdc
commit b51653fe74
37 changed files with 272 additions and 219 deletions
@@ -0,0 +1,12 @@
class A(~a~val a : Int) {
this() {`a`a}
~b~val b = `a`a
~f~fun f() = `a`a
}
fun test() {
~va~val a = new A()
`va`a.`a`a`:std::Int`
a.`b`b`:std::Int`
a.`f`f()`:std::Int`
}