Skip to content

ERROR: no method start(Nothing) in the presence of @show #6175

Closed
@jiahao

Description

Playing with a variant of array indexing rules:

julia> f()=(); f(i::Real, I...)=f(I...); f(i,I...)=tuple(length(i),f(I...)...);

julia> f(1:5)
(5,)

julia> function g(); @show "A<", (); x=(); @show x, ">A"; x; end;

julia> function g(i::Real, I...); @show "B<", i, I; x=g(I...); @show x, ">B"; x; end;

julia> function g(i, I...); @show "C<", i, I; x=tuple(length(i), g(I...)...); @show x, ">C"; x; end;

julia> g(1:5)
("C<",i,I) => ("C<",1:5,())
("A<",()) => ("A<",())
(x,">A") => ((),">A")
ERROR: no method start(Nothing)
 in g at none: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