Skip to content

callback param infer incorrect #809

Description

@sumneko
---@class unit
local mt = {}

---@param callback fun(i: integer)
function mt:loop(callback) end

mt:loop(function (i) -- `i` is not integer
    
end)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions