Skip to content

quote doesn't handle omitted function arg names #1180

Closed
@StefanKarpinski

Description

This fails:

julia> ex = :(f(::Type{Foo}) = 1)
Error showing value of type Expr:
in show: arrayref: index out of range

julia> ex.args
2-element Any Array:
 #undef
   1   

This works:

julia> ex = :(f(x::Type{Foo}) = 1)
f(x::curly(Type,Foo)) = 1

julia> ex.args
2-element Any Array:
  f(x::curly(Type,Foo))
 1                     

Metadata

Assignees

Labels

bugIndicates an unexpected problem or unintended behavior

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions