summaryrefslogtreecommitdiff
path: root/test/references/common.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-18 02:39:47 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-18 02:39:47 +0800
commit3494b7f1d0e93060cf0826f4f6c1b81d0d5e37a5 (patch)
tree4187ed3a012a64e9215284a90d89224106e837f4 /test/references/common.lua
parentc0b4b0299dc7b7efc667ef7fb0957e079ad8a411 (diff)
downloadlua-language-server-3494b7f1d0e93060cf0826f4f6c1b81d0d5e37a5.zip
update
Diffstat (limited to 'test/references/common.lua')
-rw-r--r--test/references/common.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/references/common.lua b/test/references/common.lua
index 47dfb099..c20b32ed 100644
--- a/test/references/common.lua
+++ b/test/references/common.lua
@@ -55,6 +55,13 @@ print(t.<!a!>)
]]
TEST [[
+local t = {
+ <~a~> = 1
+}
+t.<!a!> = 1
+]]
+
+TEST [[
t[<~'a'~>] = 1
print(t.<!a!>)
]]