summaryrefslogtreecommitdiff
path: root/server/test/type_inference
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-04-09 19:14:48 +0800
committersumneko <sumneko@hotmail.com>2019-04-09 19:14:48 +0800
commitadc1c62a5af178825d5c275f53ed0836f0836078 (patch)
tree9d53390f2ef3d24bdf95391dd57a396171bcb9cd /server/test/type_inference
parent4fe47715dacfb18e79848a55f4e1b4d2607b0efd (diff)
downloadlua-language-server-adc1c62a5af178825d5c275f53ed0836f0836078.zip
非 Lua 5.3 或 Lua 5.4 时,将 integer 退化为 number
Diffstat (limited to 'server/test/type_inference')
-rw-r--r--server/test/type_inference/init.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/test/type_inference/init.lua b/server/test/type_inference/init.lua
index a4f95caa..9155b3ed 100644
--- a/server/test/type_inference/init.lua
+++ b/server/test/type_inference/init.lua
@@ -1,6 +1,7 @@
local parser = require 'parser'
local core = require 'core'
local buildVM = require 'vm'
+local config = require 'config'
rawset(_G, 'TEST', true)
@@ -19,6 +20,8 @@ function TEST(res)
end
end
+config.config.runtime.version = 'Lua 5.4'
+
TEST 'string' [[
local <?var?> = '111'
]]