summaryrefslogtreecommitdiff
path: root/examples/01-struct
diff options
context:
space:
mode:
Diffstat (limited to 'examples/01-struct')
-rw-r--r--examples/01-struct/src/point.hob5
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;