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

Tuple and convert don't play well #116

Closed
ianfiske opened this issue Jul 16, 2015 · 2 comments
Closed

Tuple and convert don't play well #116

ianfiske opened this issue Jul 16, 2015 · 2 comments

Comments

@ianfiske
Copy link

I am using Julia 0.3.10 and Compat 0.4.9 and get this:

julia> using Compat

julia> @compat Tuple{Int8, Int8}  # basic syntax appears to work
(Int8,Int8)

julia> convert(@compat Tuple{Int8,Int8},(1,1))  # but I can't convert to this type
ERROR: `convert` has no method matching convert(::((DataType,DataType),(Int64,Int64)))

julia> convert((Int8, Int8), (1,1))  # even though conversion to the equivalent type works fine
(1,1)
@yuyichao
Copy link
Contributor

Dup of #71

@ianfiske
Copy link
Author

Thank you @yuyichao. convert(@compat(Tuple{Int8,Int8}),(1,1)) works for me.

martinholters pushed a commit to martinholters/Compat.jl that referenced this issue Jul 13, 2016
Update AbstractDataVector append! to allow appending to itself
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

2 participants