summaryrefslogtreecommitdiff
path: root/test-beta/references/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-12-13 10:29:28 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-12-13 10:29:28 +0800
commite656fc0315ed6062653f30de376466b42bb3eeaa (patch)
tree2652401d3397b87351ab419896e306bfd3b0e771 /test-beta/references/init.lua
parenta3c0d13b367f5e0a733e19fa96470b48163066ba (diff)
downloadlua-language-server-e656fc0315ed6062653f30de376466b42bb3eeaa.zip
修正 eachField 判断 index 的bug
Diffstat (limited to 'test-beta/references/init.lua')
-rw-r--r--test-beta/references/init.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/test-beta/references/init.lua b/test-beta/references/init.lua
index 4a122b7a..3cbb5ed8 100644
--- a/test-beta/references/init.lua
+++ b/test-beta/references/init.lua
@@ -192,6 +192,18 @@ local t = init()
t:<?add?>()
]]
+TEST [[
+local t = {}
+t.<?x?> = 1
+t[a.b.x] = 1
+]]
+
+TEST [[
+local t = {}
+t.x = 1
+t[a.b.<?x?>] = 1
+]]
+
--TEST [[
-----@class <!Class!>
-----@type <?Class?>