summaryrefslogtreecommitdiff
path: root/test-beta
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-10-22 17:36:25 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-10-22 17:36:25 +0800
commitd2328cf547e6bac9c87cf9bf61709380fe950496 (patch)
treef7cd5e1888f98bae5b43ad35730bae2c22147837 /test-beta
parent440e301d144f4fe85785f27d2fa6af2d57688930 (diff)
downloadlua-language-server-d2328cf547e6bac9c87cf9bf61709380fe950496.zip
修正一处性能问题
Diffstat (limited to 'test-beta')
-rw-r--r--test-beta/definition/table.lua24
1 files changed, 24 insertions, 0 deletions
diff --git a/test-beta/definition/table.lua b/test-beta/definition/table.lua
index 0b90fe00..ba2d2aa3 100644
--- a/test-beta/definition/table.lua
+++ b/test-beta/definition/table.lua
@@ -133,3 +133,27 @@ local y = {
}
t.<?insert?>()
]]
+
+TEST [[
+local function f()
+ local t = {}
+ t.field1 = {
+ <!x!> = 1,
+ y = 1,
+ z = 1,
+ }
+ t.field2 = {
+ x = 1,
+ y = 1,
+ z = 1,
+ }
+ t.field3 = {
+ x = 1,
+ y = 1,
+ z = 1,
+ }
+ return t
+end
+local t = f()
+t.field1.<?x?>
+]]