Typechecker tests added

This commit is contained in:
Andrey Breslav
2011-03-01 21:08:19 +03:00
parent 7b7fe4dd60
commit a327254187
3 changed files with 42 additions and 102 deletions
+4 -4
View File
@@ -3,10 +3,10 @@
}
~foo~fun foo(~foo.a~a : `std::Char`Char) = `foo.a`a
~fooB~fun fooB() = `foo`foo('1')
~foo.1~fun foo() : Int = 1.`std::Int.plus(Int)`plus(1)
~foo1~fun foo1() : `B`B = new `B`B()
~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`
~A.a~val a : `std::Int`Int
}