nomsu/tests/scopes.nom
Bruce Hill addac10a47 Re-autoformatted everything. The main changes are: no longer adding a
newline after 1-line indented code inside blocks, and forcing files to
have a trailing newline. The trailing newline thing created a lot of
spurious changes.
2018-07-22 15:01:05 -07:00

17 lines
311 B
Plaintext

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