15 lines
402 B
Plaintext
15 lines
402 B
Plaintext
-- metadata.yaml --
|
|
#files: "files/" # these are some extra files we can use (is the default)
|
|
-- main.mcl --
|
|
import "y.mcl" as g
|
|
#test "${g.y}" {} # should work
|
|
test "${g.x}" {} # should fail
|
|
test "${g.f.x}" {} # should maybe work
|
|
-- x.mcl --
|
|
$x = "this is x.mcl"
|
|
-- y.mcl --
|
|
import "x.mcl" as f
|
|
$y = $f.x + " and this is y.mcl"
|
|
-- OUTPUT --
|
|
# err: errSetScope: var `$g.x` does not exist in this scope
|