From e3486e01e820b2d61bf28e57277479ee59ab94b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 11 Dec 2019 17:01:22 +0800 Subject: =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=9C=AA=E5=BC=95=E7=94=A8=E5=8F=98?= =?UTF-8?q?=E9=87=8F=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test-beta/diagnostics/init.lua | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) (limited to 'test-beta/diagnostics/init.lua') diff --git a/test-beta/diagnostics/init.lua b/test-beta/diagnostics/init.lua index 0a38bce9..9ed22b1f 100644 --- a/test-beta/diagnostics/init.lua +++ b/test-beta/diagnostics/init.lua @@ -69,12 +69,27 @@ TEST [[ local ]] +TEST [[ +local x +]] + TEST [[ local function x() end x() ]] +TEST [[ +return function (x) + x.a = 1 +end +]] + +TEST [[ +local = {} +.a = 1 +]] + TEST([[ @@ -91,7 +106,7 @@ local = TEST [[ local -x = + = ]] @@ -338,18 +353,18 @@ return mt TEST [[ local = {} -function mt:f() +function :f() end ]] TEST [[ local = {} -x.a = 1 +.a = 1 ]] TEST [[ local = {} -x['a'] = 1 +['a'] = 1 ]] TEST [[ @@ -541,7 +556,7 @@ end TEST [[ local = {} -t[1] = 1 +[1] = 1 ]] --TEST [[ -- cgit v1.2.3