Skip to content

no type checking for function return value #1667

Closed
@max397574

Description

@max397574

How are you using the lua-language-server?

NeoVim

Which OS are you using?

MacOS

What is the issue affecting?

Annotations, Type Checking

Expected Behaviour

Getting an error because of the 3

Actual Behaviour

not getting an error

Reproduction steps

---@class cool_tbl
---@field test fun(): table<table<table<string,string>>>
local my_tbl = {
    test = function()
        return {
            { { "test", "test2" } },
            { { "test", 3 } },
        }
    end,
}

Additional Notes

No response

Log File

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions