nomsu/tests/scopes.nom

17 lines
311 B
Plaintext
Raw Normal View History

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