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.
7 lines
100 B
Rust
7 lines
100 B
Rust
// Check that issue #954 stays fixed
|
|
|
|
fn main() {
|
|
alt check -1 { -1 {} }
|
|
assert 1-1 == 0;
|
|
}
|