Basic import syntax.

This commit is contained in:
Bob Nystrom
2015-02-14 16:46:00 -08:00
parent bc5a793c41
commit a44d479643
16 changed files with 74 additions and 27 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ IO.print("start a")
var A = "a value"
IO.print("a defined ", A)
var B = "b".import_("B")
import "b" for B
IO.print("a imported ", B)
IO.print("end a")
+1 -1
View File
@@ -3,7 +3,7 @@ IO.print("start b")
var B = "b value"
IO.print("b defined ", B)
var A = "a".import_("A")
import "a" for A
IO.print("b imported ", A)
IO.print("end b")
+1 -1
View File
@@ -1,4 +1,4 @@
var A = "a".import_("A")
import "a" for A
// Shared module should only run once:
// expect: start a