summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-08 16:50:51 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-08 16:50:51 +0800
commit8772b47c0e2d3761cc6b33769e98223c08ca9629 (patch)
treeea65165a14a7052effca953a53f8698aea5f97d7 /test
parentf33b06fd928fd3541eea99b11ee6caf9b249a49b (diff)
downloadlua-language-server-8772b47c0e2d3761cc6b33769e98223c08ca9629.zip
fix
Diffstat (limited to 'test')
-rw-r--r--test/type_inference/init.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index 591d9f7c..abc2f4bc 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -1396,3 +1396,17 @@ local <?var?> = true
var = 1
var = 1.0
]]
+
+TEST 'unknown' [[
+---@return ...
+local function f() end
+
+local <?x?> = f()
+]]
+
+TEST 'unknown' [[
+---@return ...
+local function f() end
+
+local _, <?x?> = f()
+]]