summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc14
1 files changed, 4 insertions, 10 deletions
diff --git a/test.toc b/test.toc
index 6272493..df83adc 100644
--- a/test.toc
+++ b/test.toc
@@ -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