summaryrefslogtreecommitdiff
path: root/server/test/completion
diff options
context:
space:
mode:
Diffstat (limited to 'server/test/completion')
-rw-r--r--server/test/completion/init.lua24
1 files changed, 24 insertions, 0 deletions
diff --git a/server/test/completion/init.lua b/server/test/completion/init.lua
index e636e4f3..bb2199aa 100644
--- a/server/test/completion/init.lua
+++ b/server/test/completion/init.lua
@@ -536,3 +536,27 @@ tbl[ind@]
kind = CompletionItemKind.Variable,
},
}
+
+TEST [[
+return function ()
+ local t = {
+ a = {},
+ b = {},
+ }
+ t.@
+end
+]]
+{
+ {
+ label = 'a',
+ kind = CompletionItemKind.Field,
+ },
+ {
+ label = 'b',
+ kind = CompletionItemKind.Field,
+ },
+ {
+ label = 'end',
+ kind = CompletionItemKind.Field,
+ },
+}