diff options
Diffstat (limited to 'test.toc')
-rw-r--r-- | test.toc | 15 |
1 files changed, 7 insertions, 8 deletions
@@ -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(); |