summaryrefslogtreecommitdiff
path: root/test-beta
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-11-27 14:09:07 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-11-27 14:09:07 +0800
commit9f8d937378e3a4c493e91fb418b490e7f42fce6c (patch)
tree4486f39d658b8646beee64f4173ce2e78d08217b /test-beta
parent21ede3732d3bd57078db2d9075cd0dcd54dda458 (diff)
downloadlua-language-server-9f8d937378e3a4c493e91fb418b490e7f42fce6c.zip
暂存
Diffstat (limited to 'test-beta')
-rw-r--r--test-beta/references/init.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/test-beta/references/init.lua b/test-beta/references/init.lua
index 951ff516..98758c1a 100644
--- a/test-beta/references/init.lua
+++ b/test-beta/references/init.lua
@@ -129,6 +129,13 @@ function table.<?dump?>()
end
]]
+TEST [[
+local mt = {}
+mt.x = 1
+local obj = setmetatable({}, mt)
+print(obj.<?x?>)
+]]
+
--TEST [[
-----@class <!Class!>
-----@type <?Class?>