diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-04-08 16:50:51 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-04-08 16:50:51 +0800 |
commit | 8772b47c0e2d3761cc6b33769e98223c08ca9629 (patch) | |
tree | ea65165a14a7052effca953a53f8698aea5f97d7 /test/type_inference/init.lua | |
parent | f33b06fd928fd3541eea99b11ee6caf9b249a49b (diff) | |
download | lua-language-server-8772b47c0e2d3761cc6b33769e98223c08ca9629.zip |
fix
Diffstat (limited to 'test/type_inference/init.lua')
-rw-r--r-- | test/type_inference/init.lua | 14 |
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() +]] |