Closed
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