From 2eb358457cbd259f9530e2a05a66f92561e04775 Mon Sep 17 00:00:00 2001 From: Max Wash Date: Wed, 23 Apr 2025 11:00:57 +0100 Subject: [PATCH] lang: codegen: fix serialisation of selectors with unnamed args --- lang/codegen/msg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lang/codegen/msg.c b/lang/codegen/msg.c index 8e2770e..e1a63cb 100644 --- a/lang/codegen/msg.c +++ b/lang/codegen/msg.c @@ -123,7 +123,7 @@ static void serialise_selector( struct ivy_token *arg = b_unbox(struct ivy_token, it.entry, t_entry); - if (arg->t_type != IVY_TOK_IDENT) { + if (arg->t_type != IVY_TOK_IDENT && arg->t_type != IVY_TOK_LABEL) { b_stringstream_addf(out, "0"); continue; }