diff options
| author | 2022-08-18 20:29:30 +0200 | |
|---|---|---|
| committer | 2022-08-18 20:29:30 +0200 | |
| commit | 0e7882921b17c06b05a47d9ef1e3328121707568 (patch) | |
| tree | a7fc2858af993eebc217f229e8bb429671c017be /bootstrap | |
| parent | 8f3f9a5ba1fe069edf9d64f0d6743b9b3d9f5bcb (diff) | |
switch enum
Diffstat (limited to 'bootstrap')
| -rw-r--r-- | bootstrap/test.cff | 6 |
1 files changed, 5 insertions, 1 deletions
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; |