lua-language-server
lua-language-server copied to clipboard
The type of the argument of the returned function is not determined
---@class Car
---@field color string
local Car = {};
---@return Car
function Car:New() end
---@param any_car Car
---@return fun(car: Car): boolean
local function GenerateFn(any_car)
---@param car Car
return function(car)
return car == any_car;
end
end
local myCar = Car:New();
local fn = GenerateFn(myCar);
The type of the argument of the returned function is not determined

