Closed
Description
This test case:
fn foo(a: option<uint>, b: option<uint>) {
alt (a,b) {
(some(a), some(b)) if a == b { }
(some(_), none) |
(none, some(_)) { }
}
}
when compiled (1) does not fail exhaustiveness checking (it should) and (2) causes an option::get()
failure in trans (possibly as a result of problem #1?)