Skip to content

Question: how to make arguments be seens as arguments and not return types when a function is passed into another function? #1609

Closed
@PerMalmberg

Description

@PerMalmberg

Given this: @field Then fun(self:Task, f:fun(...:any?):any, arg1:any?, ...:any?):Task

how do I make arg1 and ... be seen as additional arguments to the f-function instead of return types of the f-function?

Is there a token I can insert after f:fun(...:any?):any to tell the parser that it has reached the end of the return types for f ?

Also, any plans to make a new release soon for #1556?

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