diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-11-22 20:22:13 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-11-22 20:22:13 +0800 |
commit | 928b40c6f186c4692212ff1f9751da4755aa6841 (patch) | |
tree | ea28a522e24e9330786f830ad6d0b436257856a0 /test/completion | |
parent | bc8d5250ed5040290738c5167f0aaee0ffe72f31 (diff) | |
download | lua-language-server-928b40c6f186c4692212ff1f9751da4755aa6841.zip |
resolve #727
Diffstat (limited to 'test/completion')
-rw-r--r-- | test/completion/common.lua | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/completion/common.lua b/test/completion/common.lua index 3b06d572..a01b2d10 100644 --- a/test/completion/common.lua +++ b/test/completion/common.lua @@ -2723,3 +2723,19 @@ TEST [[ kind = define.CompletionItemKind.Class, } } + +TEST [[ +---@class A +---@field zzzz number + +---@param x A +local function f(x) end + +f({zzz<??>}) +]] +{ + [1] = { + label = 'zzzz', + kind = define.CompletionItemKind.Property, + } +} |