diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-10-26 19:16:31 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-10-26 19:16:31 +0800 |
commit | f373707516e5edf9b7a35a8cb5a5e66b7bd63da6 (patch) | |
tree | ffd4fc537d56cf9f1d9e1670ebb681d90f815122 /test-beta | |
parent | ef682bf039cb35c97b70a36218955f8c29970f83 (diff) | |
download | lua-language-server-f373707516e5edf9b7a35a8cb5a5e66b7bd63da6.zip |
doc.vararg
Diffstat (limited to 'test-beta')
-rw-r--r-- | test-beta/hover/init.lua | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test-beta/hover/init.lua b/test-beta/hover/init.lua index a21c7416..c4f6cb92 100644 --- a/test-beta/hover/init.lua +++ b/test-beta/hover/init.lua @@ -1009,7 +1009,6 @@ local <?r?> = f(1) local r: integer = 1 ]] -do return end TEST [[ ---@param x number ---@param y boolean @@ -1028,19 +1027,21 @@ end f(1, 2, 3) ]] [[ -local x: *Class = 2 +local x: Class ]] TEST [[ ---@vararg Class local function f(...) - local _, <?x?> = ... + local <?t?> = {...} end +f(1, 2, 3) ]] [[ -local x: *Class {} +local t: Class[] ]] +do return end TEST [[ ---@type string[] local <?x?> |