Fix comment, add test that export glob works as import glob in scope.

This commit is contained in:
Graydon Hoare 2012-02-21 16:09:44 -08:00
parent 1f4a6bb3ad
commit 5f4dcb0fa4
2 changed files with 17 additions and 1 deletions

View File

@ -0,0 +1,14 @@
// Test that a glob-export functions as an import
// when referenced within its own local scope.
mod foo {
export bar::*;
mod bar {
const a : int = 10;
}
fn zum() {
let b = a;
}
}
fn main() { }

View File

@ -1,5 +1,7 @@
// xfail-test
// Export the enum variants, without the enum
// Test that a glob-export functions as an explicit
// named export when referenced from outside its scope.
mod foo {
export bar::*;