summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc25
1 files changed, 10 insertions, 15 deletions
diff --git a/test.toc b/test.toc
index 8181d0d..b2499df 100644
--- a/test.toc
+++ b/test.toc
@@ -3,26 +3,21 @@ puti @= fn(x: int) {
");
};
-☃ @= struct {
+
+Foo @= struct {
x, y: int;
z: float;
};
-something @= fn() int {
- 5
-};
-bar @= fn(a := something()) f: ☃, g: int {
- f.x = a;
- f.y = 123;
- f.z += 43.2;
- g = 17;
+mkfoo @= fn() f: Foo {
+ f.x = 12;
+ f.y = -983;
+ f.z = 21.34-1.2;
};
+
main @= fn() {
-f,g := bar();
-puti(g);
-puti(f.x);
-puti(f.y);
-h,i := bar();
-puti(h.x);
+ f @= mkfoo();
+ puti(f.x);
+ puti(f.y);
};