From 55bc394b5c8cc41380ff7e26729e850ecadde7ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 24 Jun 2021 20:57:50 +0800 Subject: fix #565 --- test/signature/init.lua | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) (limited to 'test/signature') diff --git a/test/signature/init.lua b/test/signature/init.lua index 931a8d73..40fb33dc 100644 --- a/test/signature/init.lua +++ b/test/signature/init.lua @@ -242,3 +242,48 @@ function f(x: table, y: any, z: any) ]], arg = {12, 35}, } + + +TEST [[ +local function x(a, b) +end + +x( aaaa $, 2) +]] +{ + label = "function x(a: any, b: any)", + arg = {12, 17}, +} + +TEST [[ +local function x(a, b) +end + +x($ aaaa , 2) +]] +{ + label = "function x(a: any, b: any)", + arg = {12, 17}, +} + +TEST [[ +local function x(a, b) +end + +x(aaaa ,$ 2) +]] +{ + label = "function x(a: any, b: any)", + arg = {20, 25}, +} + +TEST [[ +local function x(a, b) +end + +x(aaaa , 2 $) +]] +{ + label = "function x(a: any, b: any)", + arg = {20, 25}, +} -- cgit v1.2.3