From b6c31ebc4a33831c8f59e43984f3af950d418b88 Mon Sep 17 00:00:00 2001 From: lemon Date: Fri, 19 Aug 2022 08:45:52 +0200 Subject: tagged unions --- bootstrap/test.cff | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bootstrap/test.cff') 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, -- cgit v1.2.3