summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
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