summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc4
1 files changed, 3 insertions, 1 deletions
diff --git a/test.toc b/test.toc
index 6e9af49..77708b6 100644
--- a/test.toc
+++ b/test.toc
@@ -1,10 +1,12 @@
s ::= fn(t:: Type) Type {
struct {
+ c :: t = 7 as t;
m: t;
}
}
main ::= fn() {
o: s(int);
- x := o.m;
+ x := o["m"];
+ y ::= o["c"];
}