diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-06-24 20:57:50 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-06-24 20:57:50 +0800 |
commit | 55bc394b5c8cc41380ff7e26729e850ecadde7ed (patch) | |
tree | 4b598460756a7eb8a3d3454f4cffc939bc91de6c /test | |
parent | bc0270a06a1017301ca96712b350c399537e63a6 (diff) | |
download | lua-language-server-55bc394b5c8cc41380ff7e26729e850ecadde7ed.zip |
fix #565
Diffstat (limited to 'test')
-rw-r--r-- | test/signature/init.lua | 45 |
1 files changed, 45 insertions, 0 deletions
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<number, string>, 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}, +} |