summaryrefslogtreecommitdiff
path: root/server/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-03-15 13:39:25 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-03-15 13:39:25 +0800
commit035143c078f9e87b92a909b415d4d060db155604 (patch)
treebc53590d20bbfceb8ee3968793d3bc408ae4081f /server/test
parent37c2aaca32959f6c7862d7120379482f3ce811a3 (diff)
downloadlua-language-server-035143c078f9e87b92a909b415d4d060db155604.zip
库函数返回常量时使用新建值
Diffstat (limited to 'server/test')
-rw-r--r--server/test/definition/bug.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/test/definition/bug.lua b/server/test/definition/bug.lua
index b5e8dbe9..1d3ab02c 100644
--- a/server/test/definition/bug.lua
+++ b/server/test/definition/bug.lua
@@ -83,3 +83,8 @@ local a
local <!b!>
return f(), <?b?>
]]
+
+TEST [[
+local a = os.clock()
+local <?<!b!>?> = os.clock()
+]]