c7bfef43c8
That is, for example, import x::y::x, which defines a local x, and thus wouldn't be able to find x::y anymore. Closes issue #624
17 lines
192 B
Rust
17 lines
192 B
Rust
mod a {
|
|
mod b {
|
|
mod a {
|
|
fn foo() -> int { ret 1; }
|
|
}
|
|
}
|
|
}
|
|
|
|
mod c {
|
|
import a::b::a;
|
|
fn bar() { assert a::foo() == 1; }
|
|
}
|
|
|
|
fn main() {
|
|
c::bar();
|
|
}
|