Closed Munksgaard closed 9 years ago
I think the handling of match
and if
statements could use an overhaul. The current code is very hacky, and I feel like it should be possible to make something more elegant.
The same is true in if
statements:
fn test6() {
let x = Foo;
loop {
if true {
x.close();
break
} else {
let y = Foo;
}
}
}
compiles without error
The following code incorrectly compiles without errors: