diff options
| author | Michael Williamson <mike@zwobble.org> | 2026-07-02 10:56:36 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2026-07-02 10:56:36 +0100 |
| commit | 7ecc00c036ae9380bafa80060dc35756195e9c1a (patch) | |
| tree | 9b4b911cc1df68b4a02de8a8e108a2760215eeac /examples/07-imports/src | |
| parent | 0568d7e77dbe004864e19a75a2216e233fbfad2b (diff) | |
Split native type example to example with/without custom config
Diffstat (limited to 'examples/07-imports/src')
| -rw-r--r-- | examples/07-imports/src/line.hob | 7 | ||||
| -rw-r--r-- | examples/07-imports/src/point.hob | 5 |
2 files changed, 12 insertions, 0 deletions
diff --git a/examples/07-imports/src/line.hob b/examples/07-imports/src/line.hob new file mode 100644 index 0000000..562d77f --- /dev/null +++ b/examples/07-imports/src/line.hob @@ -0,0 +1,7 @@ +import {Point} from ./point; + +/// A straight line from one point to another. +struct Line { + field start: Point; + field end: Point; +} diff --git a/examples/07-imports/src/point.hob b/examples/07-imports/src/point.hob new file mode 100644 index 0000000..87f9953 --- /dev/null +++ b/examples/07-imports/src/point.hob @@ -0,0 +1,5 @@ +/// A 2D point. +struct Point { + field x: Int32; + field y: Int32; +} |
