summaryrefslogtreecommitdiff
path: root/test/completion
diff options
context:
space:
mode:
Diffstat (limited to 'test/completion')
-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 2438618e..dab31c31 100644
--- a/test/completion/common.lua
+++ b/test/completion/common.lua
@@ -3980,3 +3980,19 @@ TEST [[
}
},
}
+
+TEST [[
+---@class A
+---@field f fun(x: string): string
+
+---@type A
+local t = {
+ f = <??>
+}
+]]
+{
+ {
+ label = 'fun(x: string):string',
+ kind = define.CompletionItemKind.Function,
+ }
+}