summaryrefslogtreecommitdiff
path: root/server/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-12-11 10:34:00 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-12-11 10:34:00 +0800
commita894e10eb98bc4fe2f7b20a1649687db1fa99697 (patch)
tree6dce6fcddfa2d78d651e022529aabbede2a7a766 /server/test
parent639b77d117bb2ba9ff1a7f5784944ac24e63d4f1 (diff)
downloadlua-language-server-a894e10eb98bc4fe2f7b20a1649687db1fa99697.zip
更新vm
Diffstat (limited to 'server/test')
-rw-r--r--server/test/vm/init.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/server/test/vm/init.lua b/server/test/vm/init.lua
index 6963e4c4..d8cfb3dc 100644
--- a/server/test/vm/init.lua
+++ b/server/test/vm/init.lua
@@ -114,3 +114,12 @@ TEST [[
local function xx(a, b, c, ...)
end
]]
+
+TEST [[
+local v = 1
+local function xx()
+ print(v)
+end
+local v = 2
+xx()
+]]