summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
authorunknown <luoxingyue@cn.net.ntes>2021-09-27 17:44:16 +0800
committerunknown <luoxingyue@cn.net.ntes>2021-09-27 17:44:16 +0800
commit626032b400af1cf79823a9a004ad2d0937599153 (patch)
tree042e9e72c02a9bfb396e4297f3a4d9a5aa375095 /script/core
parentbab5ab685d64258d0f8fe10e505c5d7837307f7b (diff)
downloadlua-language-server-626032b400af1cf79823a9a004ad2d0937599153.zip
add test
Diffstat (limited to 'script/core')
-rw-r--r--script/core/diagnostics/type-check.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/core/diagnostics/type-check.lua b/script/core/diagnostics/type-check.lua
index 7b186fa0..ff3a9124 100644
--- a/script/core/diagnostics/type-check.lua
+++ b/script/core/diagnostics/type-check.lua
@@ -9,6 +9,9 @@ local function inTypes(param, args)
for _, v in ipairs(args) do
if param[1] == v[1] then
return true
+ elseif param[1] == 'number'
+ and v[1] == 'integer' then
+ return true
end
end
return false