From 92708742a18a1a3de5eb59a2e7c12788aa199d9a Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 26 Apr 2026 21:31:44 +0100 Subject: Declare types ahead of defining them --- examples/01-struct/src/point.hob | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'examples/01-struct') 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; -- cgit v1.2.3