2012-02-21 16:09:44 -08:00
|
|
|
// Test that a glob-export functions as an explicit
|
|
|
|
// named export when referenced from outside its scope.
|
2012-02-17 13:39:15 -08:00
|
|
|
|
2012-05-22 10:54:12 -07:00
|
|
|
// Modified to not use export since it's going away. --pcw
|
|
|
|
|
2012-02-17 13:39:15 -08:00
|
|
|
mod foo {
|
2012-09-07 18:08:21 -07:00
|
|
|
use bar::*;
|
2012-05-22 10:54:12 -07:00
|
|
|
export a;
|
2012-02-17 13:39:15 -08:00
|
|
|
mod bar {
|
|
|
|
const a : int = 10;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() { let v = foo::a; }
|