From 734d9c6abeffaf8f70ef043a7a960fdd6cf16ca1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Sun, 29 Sep 2019 16:44:43 +0800 Subject: =?UTF-8?q?new=20field=20call=20=E7=9A=84=E8=AF=8A=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/test/diagnostics/init.lua | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'server/test/diagnostics/init.lua') diff --git a/server/test/diagnostics/init.lua b/server/test/diagnostics/init.lua index 555bc0a8..c854e5a2 100644 --- a/server/test/diagnostics/init.lua +++ b/server/test/diagnostics/init.lua @@ -184,6 +184,34 @@ print() ('string') ]] +TEST [[ +return { + print + +} +]] + +TEST [[ +return { + print + +} +]] + +TEST [[ +print() +'string' +]] + +TEST [[ +print +{ + x = 1, +} +]] + TEST [[ local function x(a, b) return a, b -- cgit v1.2.3