frontend: align source grammar and reject empty enum payload lists

This commit is contained in:
dev committed 2026-10-08 14:14:45 +03:00
1 parent 48b9b42fed
commit 4c9c5626c9
44 files changed
+501 -33

No files matched your search

@@ -0,0 +1,7 @@
// expect: run
// result: 42
// phase: 6
// spec: docs/spec/15-source-language.md §2, §5, §6
module grammar.enum_binds
enum Value<T> { Empty, Pair(T, T), }
fn main() -> u64 effects [] { let v = Value::<u64>::Pair(1u64,42u64,); return match v { Value::<u64>::Empty => {0u64}, Value::<u64>::Pair(_, n,) => n }; }