From 626032b400af1cf79823a9a004ad2d0937599153 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 27 Sep 2021 17:44:16 +0800 Subject: add test --- script/core/diagnostics/type-check.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'script/core') 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 -- cgit v1.2.3