diff options
| author | 2022-08-19 08:45:52 +0200 | |
|---|---|---|
| committer | 2022-08-19 08:45:52 +0200 | |
| commit | b6c31ebc4a33831c8f59e43984f3af950d418b88 (patch) | |
| tree | 9d20b1398e2b7b4c5a8f5e9d9a9023919187d473 /bootstrap | |
| parent | 3481ab142293bd82fdd59e3ec86dd66352e457c3 (diff) | |
tagged unions
Diffstat (limited to 'bootstrap')
| -rw-r--r-- | bootstrap/test.cff | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bootstrap/test.cff b/bootstrap/test.cff index 31dfd6b..4475b0b 100644 --- a/bootstrap/test.cff +++ b/bootstrap/test.cff @@ -92,6 +92,9 @@ extern fn main (argc int, argv **u8) int { Vec2f:zero(&x); printf("mag = %g\n", (&x)->mag()); + let x = Number:none; + let x = Number:int{}; + let is []int = { [4] = 1, 2, [1 - 1] = 3 }; isort(is, is.#len); each(i, x, is, |