summaryrefslogtreecommitdiff
path: root/server/test/implementation/set.lua
blob: 5c4a1a2e3a8235030ef480a2e407584bf6589eea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
TEST [[
<!x!> = 1
<?x?> = 1
]]

TEST [[
global = 1
do
    <!global!> = 2
end
<?global?> = 3
]]

TEST [[
<!x!> = 1
do
    local x = 1
end
<?x?> = 1
]]

TEST [[
x = 1
do
    local x = 1
    do
        <!x!> = 2
    end
    <?x?> = 1
end
]]