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,3 +1,3 @@
// Should execute the module:
// expect: ran module
var DoesNotExist = "module".import_("DoesNotExist") // expect runtime error: Could not find a variable named 'DoesNotExist' in module 'module'.
import "module" for DoesNotExist // expect runtime error: Could not find a variable named 'DoesNotExist' in module 'module'.