diff options
| author | Michael Williamson <mike@zwobble.org> | 2026-04-26 21:31:44 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2026-04-26 21:31:44 +0100 |
| commit | 92708742a18a1a3de5eb59a2e7c12788aa199d9a (patch) | |
| tree | c50d46c56b5a80df00046f3cad244794056f05eb /examples | |
| parent | 9f6c9b42073373b18c8a92a9428f35986effc77b (diff) | |
Declare types ahead of defining them
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/01-struct/src/point.hob | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/01-struct/src/point.hob b/examples/01-struct/src/point.hob index 82b55cc..abe989d 100644 --- a/examples/01-struct/src/point.hob +++ b/examples/01-struct/src/point.hob @@ -1,3 +1,8 @@ +struct Line { + field start: Point; + field end: Point; +} + struct Point { field x: Int32; field y: Int32; |
