nomsu/tests/scopes.nom

26 lines
315 B
Plaintext
Raw Normal View History

2018-05-10 22:50:45 -07:00
use "core"
using
%x <- 99
..do
assume: %x = 99
using
action [foo]
return 99
..do
assume: (foo) = 99
action [baz]
return "outer"
2018-06-12 20:06:33 -07:00
#
do
local action [baz]
return "inner"
assume: (baz) = "inner"
assume: (baz) = "outer"
2018-05-10 22:50:45 -07:00
say "Scopes test passed."