Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tcollect and dcollect are not type-inferrable #522

Open
sethaxen opened this issue Apr 26, 2022 · 0 comments
Open

tcollect and dcollect are not type-inferrable #522

sethaxen opened this issue Apr 26, 2022 · 0 comments

Comments

@sethaxen
Copy link

julia> using Transducers, Test

julia> x = randn(10);

julia> iter = x |> Map(identity);

julia> @inferred collect(iter);

julia> @inferred tcollect(iter);
ERROR: return type Vector{Float64} does not match inferred return type Any
Stacktrace:
 [1] error(s::String)
   @ Base ./error.jl:33
 [2] top-level scope
   @ REPL[20]:1

julia> @inferred dcollect(iter);
ERROR: return type Vector{Float64} does not match inferred return type Any
Stacktrace:
 [1] error(s::String)
   @ Base ./error.jl:33
 [2] top-level scope
   @ REPL[21]:1

Is there a way to make them inferrable?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant