diff options
Diffstat (limited to 'test.toc')
-rw-r--r-- | test.toc | 14 |
1 files changed, 4 insertions, 10 deletions
@@ -7,17 +7,11 @@ puti @= fn(x: int) { // "); // }; - -f @= fn(t @ Type, x: t) t { - x + 1 -}; - -g @= fn(x, y @ Type) int { -(3 as x) + (5 as y) +Foo @= struct(x @ int) { + a: [x]float; }; main @= fn() { - puti(f(int, 3)); - puti(f(u8, 255) as int); - puti(g(int, int)); + f : Foo(13); + puti(f.a[12]); };
\ No newline at end of file |