From 0f4da273013ed0b311debefb8824c47d8be7e58f 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, 6 Nov 2019 18:15:47 +0800 Subject: =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=AF=8A=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server-beta/test/diagnostics/init.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'server-beta/test/diagnostics') diff --git a/server-beta/test/diagnostics/init.lua b/server-beta/test/diagnostics/init.lua index 6a5dc57f..2bb99323 100644 --- a/server-beta/test/diagnostics/init.lua +++ b/server-beta/test/diagnostics/init.lua @@ -607,6 +607,16 @@ local x x = x or -1 ]] +TEST [[ +local x +x = x or (0 + 1) +]] + +TEST [[ +local x, y +x = (x + y) or 0 +]] + TEST [[ local t = {} function t:() -- cgit v1.2.3