Emit decimal AIR patterns without source suffixes, radix spellings or separators. Validate range before formatting and preserve duplicate-value detection, including negative zero and 128-bit boundaries. Add source run/reject regressions for canonical spelling, duplicates and out-of-range patterns; clarify the existing integer pattern contract.
8 lines
224 B
Rust
8 lines
224 B
Rust
// expect: reject E7006
|
|
// phase: 6
|
|
// spec: docs/spec/15-source-language.md §6
|
|
module test.integer_patterns
|
|
fn main() -> u64 effects [] {
|
|
return match 42u64 { 42u64 => { 42u64 }, 0x2_au64 => { 0u64 }, _ => { 99u64 } };
|
|
}
|