summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc16
1 files changed, 8 insertions, 8 deletions
diff --git a/test.toc b/test.toc
index 1323f3f..6e9af49 100644
--- a/test.toc
+++ b/test.toc
@@ -1,10 +1,10 @@
-main ::= fn() {
- Point ::= struct {
- x: int;
- y, z: int;
+s ::= fn(t:: Type) Type {
+ struct {
+ m: t;
}
- p: Point;
- p.x = 6;
- p.y = 13;
- p.z = 43902;
+}
+
+main ::= fn() {
+ o: s(int);
+ x := o.m;
}