2011-04-24 19:40:01 -04:00
|
|
|
// error-pattern: unresolved name
|
|
|
|
|
|
|
|
mod foo {
|
2011-07-27 14:19:39 +02:00
|
|
|
export x;
|
2011-04-24 19:40:01 -04:00
|
|
|
|
2011-07-27 14:19:39 +02:00
|
|
|
fn x() { bar::x(); }
|
2011-04-24 19:40:01 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
mod bar {
|
2011-07-27 14:19:39 +02:00
|
|
|
export y;
|
2011-04-24 19:40:01 -04:00
|
|
|
|
2011-07-27 14:19:39 +02:00
|
|
|
fn x() { log "x"; }
|
2011-04-24 19:40:01 -04:00
|
|
|
|
2011-07-27 14:19:39 +02:00
|
|
|
fn y() { }
|
2011-04-24 19:40:01 -04:00
|
|
|
}
|
|
|
|
|
2011-07-27 14:19:39 +02:00
|
|
|
fn main() { foo::x(); }
|