diff options
author | unknown <luoxingyue@cn.net.ntes> | 2021-09-27 17:44:16 +0800 |
---|---|---|
committer | unknown <luoxingyue@cn.net.ntes> | 2021-09-27 17:44:16 +0800 |
commit | 626032b400af1cf79823a9a004ad2d0937599153 (patch) | |
tree | 042e9e72c02a9bfb396e4297f3a4d9a5aa375095 /script/core | |
parent | bab5ab685d64258d0f8fe10e505c5d7837307f7b (diff) | |
download | lua-language-server-626032b400af1cf79823a9a004ad2d0937599153.zip |
add test
Diffstat (limited to 'script/core')
-rw-r--r-- | script/core/diagnostics/type-check.lua | 3 |
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 |