summaryrefslogtreecommitdiff
path: root/server/test
diff options
context:
space:
mode:
Diffstat (limited to 'server/test')
-rw-r--r--server/test/completion/init.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/server/test/completion/init.lua b/server/test/completion/init.lua
index ed68dec5..6c1fe7ad 100644
--- a/server/test/completion/init.lua
+++ b/server/test/completion/init.lua
@@ -755,3 +755,17 @@ local *tocl@
kind = CompletionItemKind.Keyword,
}
}
+
+TEST [[
+local mt = {}
+mt.__index = mt
+local t = setmetatable({}, mt)
+
+t.@
+]]
+{
+ {
+ label = '__index',
+ kind = CompletionItemKind.Field,
+ }
+}