summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc15
1 files changed, 7 insertions, 8 deletions
diff --git a/test.toc b/test.toc
index 37f63f7..ade7c93 100644
--- a/test.toc
+++ b/test.toc
@@ -122,14 +122,6 @@ some_fn ::= fn(a,b,c: int, d,e,f := 3.0) y : f64 = 3.111 {
}
main ::= fn() {
- // @TODO: moving this to the bottom of main screws up the order the structs are generated in.
- Point2D ::= struct {
- x, y : int;
- }
- Point ::= struct {
- use p: Point2D;
- z: float;
- }
foo0 := int == int;
bar0 := int == float;
foo1 := &&&int == &&&u8;
@@ -162,5 +154,12 @@ main ::= fn() {
xx ::= fn() (int, int) {
return 3, 5;
}
+ Point2D ::= struct {
+ x, y : int;
+ }
+ Point ::= struct {
+ use p: Point2D;
+ z: float;
+ }
}
main();