From f4fcddfa8805848b7ce7c58188cca711fc429c3b 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, 15 Nov 2019 23:47:39 +0800 Subject: =?UTF-8?q?=E8=AF=8A=E6=96=AD=EF=BC=9A=E6=9C=AA=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E7=9A=84=E5=87=BD=E6=95=B0=20=E5=8F=AA=E6=A3=80=E6=9F=A5?= =?UTF-8?q?=E5=B1=80=E9=83=A8=E5=87=BD=E6=95=B0=E4=B8=8E=E5=85=A8=E5=B1=80?= =?UTF-8?q?=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server-beta/test/diagnostics/init.lua | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) (limited to 'server-beta/test') diff --git a/server-beta/test/diagnostics/init.lua b/server-beta/test/diagnostics/init.lua index aaf51987..40f605e6 100644 --- a/server-beta/test/diagnostics/init.lua +++ b/server-beta/test/diagnostics/init.lua @@ -297,13 +297,28 @@ return [[ ]] ]=] +config.config.diagnostics.disable['unused-local'] = true TEST [[ -local t = {} - -return t +local f = +]] + +TEST [[ +local f;f = +]] + +TEST [[ + +]] + +TEST [[ +F = +]] + +TEST [[ + ]] +config.config.diagnostics.disable['unused-local'] = false config.config.diagnostics.disable['unused-function'] = true TEST [[ local mt, x -- cgit v1.2.3