2011-07-08 09:04:40 -05:00
|
|
|
mod a {
|
|
|
|
mod b {
|
|
|
|
mod a {
|
|
|
|
fn foo() -> int { ret 1; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mod c {
|
|
|
|
import a::b::a;
|
2011-07-27 07:19:39 -05:00
|
|
|
fn bar() { assert (a::foo() == 1); }
|
2011-07-08 09:04:40 -05:00
|
|
|
}
|
|
|
|
|
2011-08-19 17:16:48 -05:00
|
|
|
fn main() { c::bar(); }
|