Skip to content

Parameters<>参数列表推断错误 #918

@chenfeng11111

Description

@chenfeng11111
---@generic F
---@param f F
---@param ... Parameters<F>...
local function f(f, ...)

end

f(math.abs, 1, 2)
Image

此时识别参数列表为可变列表,没有限制数量

如果传入函数有多个参数,则识别正常

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions