1
0
forked from Mirror/wren
Files
wren/test/language/module/multiple_variables/multiple_variables.wren
Bob Nystrom 8210452970 Relative imports!
This is a breaking change because existing imports in user Wren code
that assume the path is relative to the entrypoint file will now likely
fail.

Also, stack trace output and host API calls that take a module string
now need the resolved module string, not the short name that appears in
the import.
2018-03-24 11:10:36 -07:00

11 lines
373 B
Plaintext

import "./module" for Module1, Module2, Module3, Module4, Module5
// Only execute module body once:
// expect: ran module
System.print(Module1) // expect: from module one
System.print(Module2) // expect: from module two
System.print(Module3) // expect: from module three
System.print(Module4) // expect: from module four
System.print(Module5) // expect: from module five