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