Skip to content

resumable function with splatted args does not work in the presence of keyword args, e.g. @resumable function f(a...; kw=1) #135

@Krastanov

Description

@Krastanov
julia> @resumable function f(a...; k...)
       @yield a
       @yield k
       end
ERROR: LoadError: syntax: invalid "..." on non-final argument
Stacktrace:
 [1] top-level scope
   @ none:1
in expression starting at REPL[3]:1

julia> function f(a...; k...)
       return a,k
       end
f (generic function with 1 method)

Metadata

Metadata

Assignees

No one assigned

    Labels

    edge case syntaxStandard syntax or scoping that breaks or gives wrong results with @resumableenhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions