From 8f505a0b999d1432dfc107133e7ac2ba591cbed2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 4 Nov 2019 21:11:25 +0800 Subject: =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server-beta/test/diagnostics/init.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'server-beta/test') diff --git a/server-beta/test/diagnostics/init.lua b/server-beta/test/diagnostics/init.lua index b0438eb2..0c2b077f 100644 --- a/server-beta/test/diagnostics/init.lua +++ b/server-beta/test/diagnostics/init.lua @@ -142,6 +142,12 @@ local _ENV (_ENV) -- 由于重定义了_ENV,因此print变为了未定义全局变量 ]] +TEST [[ +local x +return x, function () +end +]] + TEST [[ print(1) _ENV = nil -- cgit v1.2.3