summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-02-24 19:48:31 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-02-24 19:48:31 +0800
commitd3eb7b1656b243848abe13503faced58db9d0581 (patch)
tree20da64688c2baddbf960c6935d1096f48c7a1640 /test
parent73877202eca3f7e54d21cd04fa7bcc2daed3377d (diff)
downloadlua-language-server-d3eb7b1656b243848abe13503faced58db9d0581.zip
fix completion inside ipairs
Diffstat (limited to 'test')
-rw-r--r--test/signature/init.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/signature/init.lua b/test/signature/init.lua
index c7b9a137..90b47636 100644
--- a/test/signature/init.lua
+++ b/test/signature/init.lua
@@ -203,3 +203,14 @@ function f(a: any, b: any, c: any)
]],
arg = {20, 25},
}
+
+TEST [[
+for _ in pairs($) do
+end
+]]
+{
+ label = [[
+function pairs(t: table)
+]],
+ arg = {16, 23},
+}