diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-09-15 16:22:42 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-09-15 16:22:42 +0800 |
commit | 353b5e3085fd7dd5f6b659917540096d3792b42c (patch) | |
tree | 3de8833c9baadc4158353b208c70cbfe478fe946 /test | |
parent | e2df6d85fb15c50b96811d1923079d003e7f52d4 (diff) | |
download | lua-language-server-353b5e3085fd7dd5f6b659917540096d3792b42c.zip |
fix #1439
Diffstat (limited to 'test')
-rw-r--r-- | test/completion/common.lua | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/test/completion/common.lua b/test/completion/common.lua index 02e57b80..8fa8c26a 100644 --- a/test/completion/common.lua +++ b/test/completion/common.lua @@ -3750,3 +3750,30 @@ TEST [[ local x = function (x, y) end ]] (EXISTS) + +TEST [[ +local x = { +<??> +}) +]] +(function (results) + for _, res in ipairs(results) do + assert(res.label ~= 'do') + end +end) + +TEST [[ +---@class Options +---@field page number +---@field active boolean + +---@param opts Options +local function acceptOptions(opts) end + +acceptOptions({ +<??> +}) +]] +(function (results) + assert(#results == 2) +end) |