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

unique(itr) doesn't infer types for a generator #20105

Closed
colinfang opened this issue Jan 18, 2017 · 0 comments
Closed

unique(itr) doesn't infer types for a generator #20105

colinfang opened this issue Jan 18, 2017 · 0 comments
Labels
collections Data structures holding multiple items, e.g. sets compiler:codegen Generation of LLVM IR and native code compiler:inference Type inference

Comments

@colinfang
Copy link
Contributor

colinfang commented Jan 18, 2017

Unlike Set or collect, unique(itr) doesn't infer types from the generator.

unique(x for x in 1:3)

3-element Array{Any,1}:
 1
 2
 3

It should return Array{Int, 1}.

@kshyatt kshyatt added compiler:codegen Generation of LLVM IR and native code compiler:inference Type inference labels Jan 19, 2017
@ararslan ararslan added the collections Data structures holding multiple items, e.g. sets label Jan 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
collections Data structures holding multiple items, e.g. sets compiler:codegen Generation of LLVM IR and native code compiler:inference Type inference
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants