From 0e7882921b17c06b05a47d9ef1e3328121707568 Mon Sep 17 00:00:00 2001 From: lemon Date: Thu, 18 Aug 2022 20:29:30 +0200 Subject: switch enum --- bootstrap/test.cff | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bootstrap/test.cff') diff --git a/bootstrap/test.cff b/bootstrap/test.cff index 6f20b6e..5e384af 100644 --- a/bootstrap/test.cff +++ b/bootstrap/test.cff @@ -11,7 +11,7 @@ enum Color { } defmacro each(i, x, arr, &body) [ - for let i = 0; i < arr.#len; ++i { + for let i = 0z; i < arr.#len; ++i { let x = arr[i]; body } @@ -117,6 +117,10 @@ extern fn main (argc int, argv **u8) int { case else; "idk"; } + + switch colors[0] { + case :Red; + } return 0; -- cgit v1.2.3