summaryrefslogtreecommitdiff
path: root/test/completion/common.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-11-22 20:22:13 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-11-22 20:22:13 +0800
commit928b40c6f186c4692212ff1f9751da4755aa6841 (patch)
treeea28a522e24e9330786f830ad6d0b436257856a0 /test/completion/common.lua
parentbc8d5250ed5040290738c5167f0aaee0ffe72f31 (diff)
downloadlua-language-server-928b40c6f186c4692212ff1f9751da4755aa6841.zip
resolve #727
Diffstat (limited to 'test/completion/common.lua')
-rw-r--r--test/completion/common.lua16
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,
+ }
+}