summaryrefslogtreecommitdiff
path: root/test/completion
diff options
context:
space:
mode:
Diffstat (limited to 'test/completion')
-rw-r--r--test/completion/common.lua18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/completion/common.lua b/test/completion/common.lua
index 8fa8c26a..9f5e5f6f 100644
--- a/test/completion/common.lua
+++ b/test/completion/common.lua
@@ -3777,3 +3777,21 @@ acceptOptions({
(function (results)
assert(#results == 2)
end)
+
+TEST [[
+local t1 = {}
+
+t1.A = {}
+t1.A.B = {}
+t1.A.B.C = 1
+
+local t2 = t1
+
+print(t2.A.<??>)
+]]
+{
+ {
+ label = 'B',
+ kind = define.CompletionItemKind.Field,
+ },
+}