You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
julia>join((), ",")
ERROR: TypeError:in fieldtype, expected DataType, got Type{Union{}}
Stacktrace:
[1] fixpoint_iter_type at ./iterators.jl:1081 [inlined]
[2] Type at ./iterators.jl:1055 [inlined]
[3] join at ./strings/io.jl:239 [inlined]
[4] #sprint#354 at ./strings/io.jl:99 [inlined]
[5] sprint at ./strings/io.jl:95 [inlined]
[6] join(::Tuple{}, ::String) at ./strings/io.jl:248
[7] top-level scope
The Iterators.Stateful iterator does not handle the case where next(v, s) is guaranteed to be an error and thus inference infers it as Union{}. This is the case for next((), start(())).
The text was updated successfully, but these errors were encountered:
This is a simply hack to avoid working with an `Iterators.Stateful(())`, which has problems when trying to stably infer the return type of the error function `next((), _)`. Punts #26871 to just using `Stateful` itself.
This is a simply hack to avoid working with an `Iterators.Stateful(())`, which has problems when trying to stably infer the return type of the error function `next((), _)`. Punts #26871 to just using `Stateful` itself.
The
Iterators.Stateful
iterator does not handle the case wherenext(v, s)
is guaranteed to be an error and thus inference infers it asUnion{}
. This is the case fornext((), start(()))
.The text was updated successfully, but these errors were encountered: