diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2020-02-21 12:00:00 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2020-02-21 12:00:00 -0500 |
commit | 18cb8dabd9834ec1e19f0cd7e40bc32689043df6 (patch) | |
tree | dc46bf7fd02cb408b2fbb7387d9238ceb591e0b0 /test.toc | |
parent | 9055d35ad80f804e4bfb5ef9968b25dad92f3764 (diff) |
fixed several bugs with struct parameters
Diffstat (limited to 'test.toc')
-rw-r--r-- | test.toc | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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 |