nomsu/tests/scopes.nom
2018-06-12 20:06:37 -07:00

26 lines
315 B
Plaintext

use "core"
using
%x <- 99
..do
assume: %x = 99
using
action [foo]
return 99
..do
assume: (foo) = 99
action [baz]
return "outer"
#
do
local action [baz]
return "inner"
assume: (baz) = "inner"
assume: (baz) = "outer"
say "Scopes test passed."