Skip to content

The type of the argument of the returned function is not determined #1201

@RomanSpector

Description

@RomanSpector
---@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

Снимок экрана 2022-06-13 100117

Снимок экрана 2022-06-13 100048

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestfeat/LuaCats AnnotationsRelated to Lua Language Server Annotations (LuaCats)

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions