diff options
Diffstat (limited to 'tests/types.toc')
-rw-r--r-- | tests/types.toc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/types.toc b/tests/types.toc index 7e56f91..25c38d5 100644 --- a/tests/types.toc +++ b/tests/types.toc @@ -2,13 +2,13 @@ #include "std/mem.toc"; z ::= nms { - Foo ::= struct(f ::= fn() int { 7 }) { + Foo ::= struct(f ::= fn() int { return 7; }) { x: int; } - Bar ::= fn() &(struct { x, y: int; f ::= fn() int { 13 } } ) { + Bar ::= fn() &(struct { x, y: int; f ::= fn() int { return 13; } } ) { x : u64; - &x as &void + return &x as &void; } |