From 9c485da5e1d955031fa2a3654bfc2ef814898167 Mon Sep 17 00:00:00 2001 From: lemon Date: Thu, 18 Aug 2022 17:39:25 +0200 Subject: lots of goodnes --- bootstrap/test.cff | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bootstrap/test.cff') diff --git a/bootstrap/test.cff b/bootstrap/test.cff index 6f5242d..c7309a9 100644 --- a/bootstrap/test.cff +++ b/bootstrap/test.cff @@ -72,7 +72,7 @@ fn spanz(cstr *const u8) [#]const u8 { defmacro transmute(Type, x) [ (do union T { from typeof(x), to Type }; - T{x}.to; + (T{x}).to; ) ] @@ -88,6 +88,9 @@ extern fn main (argc int, argv **u8) int { let is []int = { [4] = 1, 2, [1 - 1] = 3 }; isort(is, is.#len); + each(i, x, is, + printf("%d\n", x); + ) each(i, x, is) { printf("%d\n", x); } -- cgit v1.2.3