2011-08-16 06:24:04 -05:00
|
|
|
// error-pattern:unresolved name
|
2011-08-05 17:23:44 -05:00
|
|
|
// a good test that we merge paths correctly in the presence of a
|
|
|
|
// variable that's used before it's declared
|
|
|
|
|
|
|
|
fn my_fail() -> ! { fail; }
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
alt (true) {
|
|
|
|
false { my_fail(); }
|
|
|
|
true {}
|
|
|
|
}
|
|
|
|
|
|
|
|
log x;
|
|
|
|
let x:int;
|
|
|
|
}
|