Skip to content

callback param infer incorrect #809

@sumneko

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

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions