Skip to content

problem with table return type checking #1674

Open
@max397574

Description

@max397574

related: #1667
I expected this to give an error

---@class cool_tbl
---@field test fun():string[]
local my_tbl = {
    test = function()
        return {
            2,
            { "test" },
        }
    end,
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestfeat/type checkRelated to the type checking feature

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions