Allow zero or multiple imported names.

This commit is contained in:
Bob Nystrom
2015-02-17 07:32:33 -08:00
parent 31304ac2bb
commit b2ca4c0381
11 changed files with 44 additions and 30 deletions
@@ -0,0 +1,10 @@
var Module = "outer"
if (true) {
import "module" for Module
// expect: ran module
IO.print(Module) // expect: from module
}
IO.print(Module) // expect: outer
+3
View File
@@ -0,0 +1,3 @@
// nontest
var Module = "from module"
IO.print("ran module")