summaryrefslogtreecommitdiff
path: root/test/completion/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/completion/init.lua')
-rw-r--r--test/completion/init.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/completion/init.lua b/test/completion/init.lua
index 1ed82b2a..3dd9b639 100644
--- a/test/completion/init.lua
+++ b/test/completion/init.lua
@@ -2723,3 +2723,17 @@ f('$')
},
},
}
+
+TEST [[
+---@class Class
+---@field on fun()
+local c
+
+c:$
+]]
+{
+ {
+ label = 'on',
+ kind = define.CompletionItemKind.Field,
+ }
+}