2018-07-20 20:27:15 -07:00
|
|
|
#!/usr/bin/env nomsu -V2.5.4.3
|
2018-05-10 22:50:45 -07:00
|
|
|
use "core"
|
2018-07-20 20:27:15 -07:00
|
|
|
|
2018-07-18 01:27:56 -07:00
|
|
|
%x = "outer"
|
|
|
|
with local %x:
|
|
|
|
%x = "inner"
|
|
|
|
assume (%x == "inner")
|
2018-05-10 22:50:45 -07:00
|
|
|
|
2018-07-18 01:27:56 -07:00
|
|
|
assume (%x == "outer")
|
2018-06-14 23:25:05 -07:00
|
|
|
action [foo] "outer foo"
|
2018-07-18 01:27:56 -07:00
|
|
|
with local [action (foo)]:
|
2018-06-14 23:25:05 -07:00
|
|
|
action [foo] "inner foo"
|
2018-07-18 01:27:56 -07:00
|
|
|
assume ((foo) == "inner foo")
|
2018-05-10 22:50:45 -07:00
|
|
|
|
2018-07-18 01:27:56 -07:00
|
|
|
assume ((foo) == "outer foo")
|
2018-07-22 15:01:05 -07:00
|
|
|
say "Scopes test passed."
|