summaryrefslogtreecommitdiff
path: root/test/definition/bug.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-12-01 11:08:40 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-12-01 11:08:40 +0800
commitee1195cfadd0e290aa8de2487d9df7902d05ac51 (patch)
treed6a51ad342327478755286080572189db389887b /test/definition/bug.lua
parent58815ee05b636efe9330cd26926f4aeb047984a9 (diff)
downloadlua-language-server-ee1195cfadd0e290aa8de2487d9df7902d05ac51.zip
add tests
Diffstat (limited to 'test/definition/bug.lua')
-rw-r--r--test/definition/bug.lua17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/definition/bug.lua b/test/definition/bug.lua
index 0550b3b9..e7158848 100644
--- a/test/definition/bug.lua
+++ b/test/definition/bug.lua
@@ -129,3 +129,20 @@ end
local t = init()
t:<?add?>()
]]
+
+TEST [[
+local t = {}
+t.<!f1!> = 1
+t.<!f2!> = t.f1
+
+print(t.<?f2?>)
+]]
+
+TEST [[
+local t = {}
+t.<!f1!> = 1
+t.<!f2!> = t.f1
+t.<!f1!> = t.f2
+
+print(t.<?f2?>)
+]]