Skip to content

Wrong slurp flag for slurps with default args #165

@ghost

Description

## Passes
args = splitdef(Meta.parse("f(v::Int...) = v"))[:args]
spa = splitarg(args[1])
@assert spa[3] == true 
@assert spa[4] == nothing

## Slurp fails
args = splitdef(Meta.parse("f(v::Int...=0) = v"))[:args]
spa = splitarg(args[1])
@assert spa[3] == true # This one fails, should be true
@assert spa[4] == 0

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