diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-12-18 18:33:14 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-12-18 18:33:14 +0800 |
commit | ef7c96bfd7b57dd2a741c107e823bc59e4f2b87c (patch) | |
tree | caa8af4f3ddaf07128a1b9d5a3d7c270b639ee7c /server/test | |
parent | 09064478af8fff383fd188d3b38461563f32968a (diff) | |
download | lua-language-server-ef7c96bfd7b57dd2a741c107e823bc59e4f2b87c.zip |
优化不定参函数的hover
Diffstat (limited to 'server/test')
-rw-r--r-- | server/test/hover/init.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/server/test/hover/init.lua b/server/test/hover/init.lua index 0321a952..a11dff45 100644 --- a/server/test/hover/init.lua +++ b/server/test/hover/init.lua @@ -181,3 +181,13 @@ function string.lower(string) -> string Returns a copy of this string with all uppercase letters changed to lowercase. ]] + +TEST [[ +local function x(a, ...) +end + +<?x?>(1, 2, 3, 4, 5, 6, 7) +]] +[[ +function x(a: number, ...) +]] |