Constructors (all but Java) work, a draft version

This commit is contained in:
Andrey Breslav
2011-03-21 17:37:34 +03:00
parent e4fcb756a3
commit 0340e9623c
29 changed files with 523 additions and 139 deletions
+2 -2
View File
@@ -1,12 +1,12 @@
~A~class A {
~B~class B {
~B()~this() {}
}
~foo~fun foo(~foo.a~a : `std::Char`Char) = `foo.a`a`:std::Char`
~fooB~fun fooB() = `foo`foo('1')`:std::Char`
~foo.1~fun foo() : Int = (1.`std::Int.plus(Int)`plus(1))`:std::Int`
~foo1~fun foo1() : `B`B = new `B`B()`:B`
~foo1~fun foo1() : `B`B = new `B()`B()`:B`
~A.a~val a : `std::Int`Int
}