X-Git-Url: https://gitweb.ps.run/toc/blobdiff_plain/b9322dfb8efe37f6f88a899269bdf21015f4db9a..17860defa84c6d8bc0e8bc088a7e09361f17db07:/test/test2.toc diff --git a/test/test2.toc b/test/test2.toc index 6e8d4f8..abd6bc7 100644 --- a/test/test2.toc +++ b/test/test2.toc @@ -13,6 +13,7 @@ namespace N1 { m1(i: int) : int { this->i3 = this->i1 * this->i2; + f1(); N1::f1(); return this->i1 + this->i2; @@ -21,6 +22,7 @@ namespace N1 { func f1() : void { var s1 : N1::N2::S1; + s1.m1(123); } } @@ -35,6 +37,11 @@ struct S1 { } } +struct S2 { + abc(): S2 { } + xyz(): S2 { } +} + func generic1(a1 : A, a2 : A) : A { return a1 + a2; } @@ -57,5 +64,8 @@ func main(argc : int, argv : char**) : int { generic1(1, 2); generic1(3.4, 5.6); + var s: S2; + s.abc().xyz(); + return 0; } \ No newline at end of file