mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-06 16:57:04 +08:00
Add global & test
This commit is contained in:
parent
cf2fa09d6c
commit
10b984556d
@ -16,3 +16,8 @@ def f() {
|
|||||||
|
|
||||||
f();
|
f();
|
||||||
|
|
||||||
|
|
||||||
|
global &h = v;
|
||||||
|
assert_true(h == v)
|
||||||
|
v = 3;
|
||||||
|
assert_true(h == 3)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user