diff options
Diffstat (limited to 'server/src/vm/vm.lua')
-rw-r--r-- | server/src/vm/vm.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/src/vm/vm.lua b/server/src/vm/vm.lua index 5b686bd5..4308ea2c 100644 --- a/server/src/vm/vm.lua +++ b/server/src/vm/vm.lua @@ -247,7 +247,7 @@ function mt:callLibrary(func, values, source, lib) for i, arg in ipairs(lib.args) do local value = values[i] if value and arg.type ~= '...' then - value:setType(arg.type, 0.9) + value:setType(arg.type, 0.6) end end end @@ -261,7 +261,7 @@ function mt:callLibrary(func, values, source, lib) end local value = func:getReturn(i) if value then - value:setType(rtn.type or 'any', 0.9) + value:setType(rtn.type or 'any', 0.6) end end end @@ -1224,7 +1224,7 @@ end return function (ast, lsp, uri) if not ast then - return nil + return nil, 'Ast failed' end local vm = setmetatable({ funcs = {}, |