summaryrefslogtreecommitdiff
path: root/test/diagnostics/unbalanced-assignments.lua
blob: a0d47f56904a4c24034af70697a25779dbb2a59d (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
32
33
34
TEST [[
local x, <!y!>, <!z!> = 1
]]

TEST [[
local x, y, <!z!> = 1, 2
]]

TEST [[
local x, y, z = print()
]]

TEST [[
local x, y, z
]]

TEST [[
local x, y, z
x, <!y!>, <!z!> = 1
]]

TEST [[
X, <!Y!>, <!Z!> = 1
]]

TEST [[
T = {}
T.x, <!T.y!>, <!T.z!> = 1
]]

TEST [[
T = {}
T['x'], <!T['y']!>, <!T['z']!> = 1
]]