From cd370225fc4eaf6e2f6baadfb5a8501943c86783 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Fri, 11 Aug 2023 17:05:18 +0800 Subject: cleanup tests --- test/diagnostics/unbalanced-assignments.lua | 34 +++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 test/diagnostics/unbalanced-assignments.lua (limited to 'test/diagnostics/unbalanced-assignments.lua') diff --git a/test/diagnostics/unbalanced-assignments.lua b/test/diagnostics/unbalanced-assignments.lua new file mode 100644 index 00000000..a0d47f56 --- /dev/null +++ b/test/diagnostics/unbalanced-assignments.lua @@ -0,0 +1,34 @@ +TEST [[ +local x, , = 1 +]] + +TEST [[ +local x, y, = 1, 2 +]] + +TEST [[ +local x, y, z = print() +]] + +TEST [[ +local x, y, z +]] + +TEST [[ +local x, y, z +x, , = 1 +]] + +TEST [[ +X, , = 1 +]] + +TEST [[ +T = {} +T.x, , = 1 +]] + +TEST [[ +T = {} +T['x'], , = 1 +]] -- cgit v1.2.3