diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-01-15 10:18:39 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-01-15 10:18:39 +0800 |
commit | 36eafb0a228b1479556363b3cf160ad76fde0375 (patch) | |
tree | 93e3afd1da26c610bd1526234f6b3d5648c566c8 /server/test/signature | |
parent | eae093e634ce411a016f493805fdceda6e525fdd (diff) | |
download | lua-language-server-36eafb0a228b1479556363b3cf160ad76fde0375.zip |
修正参数提示的BUG
Diffstat (limited to 'server/test/signature')
-rw-r--r-- | server/test/signature/init.lua | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/server/test/signature/init.lua b/server/test/signature/init.lua index 4110c585..0f16af91 100644 --- a/server/test/signature/init.lua +++ b/server/test/signature/init.lua @@ -49,6 +49,28 @@ x(@) } TEST [[ +local function x(a, b) +end + +x(xxx@) +]] +{ + label = "function x(a: any, b: any)", + arg = 'a: any' +} + +TEST [[ +local function x(a, b) +end + +x(xxx, @) +]] +{ + label = "function x(a: any, b: any)", + arg = 'b: any' +} + +TEST [[ function mt:f(a) end |