67cc89f38d
Issue #352 Closes #1720 The old checker would happily accept things like 'alt x { @some(a) { a } }'. It now properly descends into patterns, checks exhaustiveness of booleans, and complains when number/string patterns aren't exhaustive.
4 lines
128 B
Rust
4 lines
128 B
Rust
// n.b. This was only ever failing with optimization disabled.
|
|
fn a() -> int { alt check ret 1 { 2 { 3 } } }
|
|
fn main() { a(); }
|