lang: codegen: fix serialisation of selectors with unnamed args
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user