From 013e4912833ebe5db705a0e8b3bd1c2ef62ef453 Mon Sep 17 00:00:00 2001 From: lemon Date: Mon, 8 Aug 2022 10:22:43 +0200 Subject: expand macros at toplevel --- bootstrap/test2.cff | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bootstrap/test2.cff') diff --git a/bootstrap/test2.cff b/bootstrap/test2.cff index 0d5d086..a48247e 100644 --- a/bootstrap/test2.cff +++ b/bootstrap/test2.cff @@ -16,7 +16,9 @@ struct Bit { !fn foo(x T) T { return ~x + Y; } } -def Y = 3.3; +defmacro def2(x, v) [def x = (v)] + +def2(Y, 3.3); enum union Value { None, -- cgit v1.2.3