diff options
author | sumneko <sumneko@hotmail.com> | 2019-04-17 12:29:12 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2019-04-17 12:29:12 +0800 |
commit | f2a68c5f7dda67483599dc7c983a2ad3098da097 (patch) | |
tree | 4770c53981e71555aa60f7e30c4a4f6f8db0e456 /server/test | |
parent | 4ddf788965b6f43d75d119600ed490e47825dff1 (diff) | |
download | lua-language-server-f2a68c5f7dda67483599dc7c983a2ad3098da097.zip |
修正函数递归时,局部变量堆栈共享状态的bug
Diffstat (limited to 'server/test')
-rw-r--r-- | server/test/diagnostics/init.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/server/test/diagnostics/init.lua b/server/test/diagnostics/init.lua index 9fbe9624..218f0f55 100644 --- a/server/test/diagnostics/init.lua +++ b/server/test/diagnostics/init.lua @@ -312,3 +312,15 @@ local _ = 1, <!2!> TEST [[ _ = 1, <!2!> ]] + +TEST [[ +local function x() + do + local k + print(k) + x() + end + local k = 1 + print(k) +end +]] |