nomsu/tests/scopes.nom

18 lines
297 B
Plaintext
Raw Normal View History

#!/usr/bin/env nomsu -V1
2018-05-10 22:50:45 -07:00
use "core"
%x <- "outer"
with local %x
%x <- "inner"
assume: %x = "inner"
assume: %x = "outer"
2018-05-10 22:50:45 -07:00
action [foo] "outer foo"
with local [action: foo]
action [foo] "inner foo"
assume: (foo) = "inner foo"
assume: (foo) = "outer foo"
2018-05-10 22:50:45 -07:00
say "Scopes test passed."