Fixed match, and enabled macro keywords to share names with constants

This commit is contained in:
2025-11-30 02:30:42 +01:00
parent ecf151158d
commit 4e4dc381ea
7 changed files with 82 additions and 73 deletions

View File

@@ -1,6 +1,6 @@
let my_tuple = option::some t[1, 2]
let main = match my_tuple {
option::of t[ref head, ..] => head;
option::empty => "foo";
option::some t[ref head, ..] => head;
option::none => "foo";
}