summaryrefslogtreecommitdiff
path: root/server/test
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-04-17 14:13:27 +0800
committersumneko <sumneko@hotmail.com>2019-04-17 14:13:27 +0800
commit450362c7a55294581eca2cd5ab34ccd286ab08cb (patch)
treed42f2c096eb72dc8fe34fd812feabe4703f8225b /server/test
parentdfce55a48eb5f7f69bd64eba2b523b4e15e7e342 (diff)
downloadlua-language-server-450362c7a55294581eca2cd5ab34ccd286ab08cb.zip
修正函数递归时,没有重新创建局部变量的bug
Diffstat (limited to 'server/test')
-rw-r--r--server/test/diagnostics/init.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/server/test/diagnostics/init.lua b/server/test/diagnostics/init.lua
index 218f0f55..557a2475 100644
--- a/server/test/diagnostics/init.lua
+++ b/server/test/diagnostics/init.lua
@@ -324,3 +324,11 @@ local function x()
print(k)
end
]]
+
+TEST [[
+local function x()
+ local loc
+ x()
+ print(loc)
+end
+]]