lang: codegen: fix serialisation of selectors with unnamed args

This commit is contained in:
2025-04-23 11:00:57 +01:00
parent 857d99ea34
commit 2eb358457c

View File

@@ -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;
}