2010-06-23 23:03:09 -05:00
|
|
|
mod foo {
|
2011-12-22 19:53:53 -06:00
|
|
|
fn x(y: int) { log(debug, y); }
|
2010-06-23 23:03:09 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
mod bar {
|
2011-07-27 07:19:39 -05:00
|
|
|
import foo::x;
|
|
|
|
import z = foo::x;
|
|
|
|
fn thing() { x(10); z(10); }
|
2010-06-23 23:03:09 -05:00
|
|
|
}
|
2011-06-29 11:13:48 -05:00
|
|
|
|
2011-08-19 17:16:48 -05:00
|
|
|
fn main() { bar::thing(); }
|