rust/src/test/run-pass/import7.rs
Rafael Ávila de Espíndola 58490d7fa0 Fix the last known (to me) bug in import resolution. We were not properly
dropping the inner part of the environment when an intermediate item resolved
in an outer scope.
2011-01-17 13:33:13 -08:00

20 lines
200 B
Rust

import bar.baz;
import foo.zed;
mod foo {
mod zed {
fn baz() {
log "baz";
}
}
}
mod bar {
import zed.baz;
mod foo {
mod zed {
}
}
}
fn main(vec[str] args) {
baz();
}