From 5737d55897545813e1f84de8adde2a046d3904f7 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, 16 Sep 2020 14:56:35 +0800 Subject: =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=8F=82=E6=95=B0=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test-beta/signature/init.lua | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'test-beta/signature/init.lua') diff --git a/test-beta/signature/init.lua b/test-beta/signature/init.lua index 400fea20..bd7ffe8d 100644 --- a/test-beta/signature/init.lua +++ b/test-beta/signature/init.lua @@ -111,10 +111,9 @@ TEST [[ ]] { label = [[ -function string:sub(i: integer [, j: integer(-1)]) - -> string +function string:sub(i: integer, j: integer) ]], - arg = {22, 31}, + arg = {21, 30}, } TEST [[ @@ -128,7 +127,12 @@ end f(1, 'string$') ]] -(nil) +{ + label = [[ +function f(a: any, b: any, c: any) +]], + arg = {20, 25}, +} TEST [[ pcall(function () $ end) -- cgit v1.2.3