diff options
author | sumneko <sumneko@hotmail.com> | 2019-04-17 14:13:27 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2019-04-17 14:13:27 +0800 |
commit | 450362c7a55294581eca2cd5ab34ccd286ab08cb (patch) | |
tree | d42f2c096eb72dc8fe34fd812feabe4703f8225b /server/test | |
parent | dfce55a48eb5f7f69bd64eba2b523b4e15e7e342 (diff) | |
download | lua-language-server-450362c7a55294581eca2cd5ab34ccd286ab08cb.zip |
修正函数递归时,没有重新创建局部变量的bug
Diffstat (limited to 'server/test')
-rw-r--r-- | server/test/diagnostics/init.lua | 8 |
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 +]] |