summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-02-21 12:00:00 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2020-02-21 12:00:00 -0500
commit18cb8dabd9834ec1e19f0cd7e40bc32689043df6 (patch)
treedc46bf7fd02cb408b2fbb7387d9238ceb591e0b0 /test.toc
parent9055d35ad80f804e4bfb5ef9968b25dad92f3764 (diff)
fixed several bugs with struct parameters
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc12
1 files changed, 10 insertions, 2 deletions
diff --git a/test.toc b/test.toc
index e115d6b..fcd6119 100644
--- a/test.toc
+++ b/test.toc
@@ -2,10 +2,18 @@
// #include "std/io.toc";
// };
-Thing ::= struct(t::Type=int) {
+
+
+Thing ::= struct(t::=int, u::t=3) {
it : t;
+ that : [u]t;
};
main ::= fn() {
- a: Thing();
+ a: Thing(u = 172, t = u8);
+ b: Thing();
+ c : Thing(i16);
+ d: Thing(u8, 428);
+ e: Thing(t = int, u = 3);
+ f: Thing(i16, 3);
}; \ No newline at end of file