summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/completion/common.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/completion/common.lua b/test/completion/common.lua
index 1cdff803..7c383fe4 100644
--- a/test/completion/common.lua
+++ b/test/completion/common.lua
@@ -3382,3 +3382,17 @@ f(<??>)
kind = define.CompletionItemKind.EnumMember,
},
}
+
+TEST [[
+return function ()
+ local function fff(xxx)
+ for f in xx<??>
+ end
+end
+]]
+{
+ {
+ label = 'xxx',
+ kind = define.CompletionItemKind.Variable,
+ },
+}