summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-08 17:25:15 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-08 17:25:15 +0800
commit4945fdb9092ba9dbecf1dc419f444763b6202a65 (patch)
tree08498d43063a4db7e56068143cfa15e0c8e539dc /test
parent6bb4453489dc86547d967f35308783f5823547e0 (diff)
downloadlua-language-server-4945fdb9092ba9dbecf1dc419f444763b6202a65.zip
reducing guess
Diffstat (limited to 'test')
-rw-r--r--test/type_inference/init.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index abc2f4bc..bad1a876 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -1410,3 +1410,12 @@ local function f() end
local _, <?x?> = f()
]]
+
+TEST 'unknown' [[
+local t = {
+ x = 1,
+ y = 2,
+}
+
+local <?x?> = t[#t]
+]]