summaryrefslogtreecommitdiff
path: root/server/test/definition/set.lua
blob: 294a92ca4768eb4a923471e603d85f0cb3b7259c (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
TEST [[
<!x!> = 1
<?x?>()
]]

TEST [[
do
    <!global!> = 1
end
<?global?>()
]]

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

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