-
Notifications
You must be signed in to change notification settings - Fork 152
Resolve ambiguity for convert(::Type{<:Scalar}, ::StaticArray)
#808
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
Conversation
Great! So, can we set this to 0 for modern Julia now? StaticArrays.jl/test/ambiguities.jl Lines 4 to 11 in cee335d
|
It looks like so! I just did that in the last commit. Caveat though: I'm talking about ambiguities being detected by |
Oh, interesting. So it looks like I guess it means I should add |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for tightening the ambiguity bounds!
It looks like the issue in nightly is due to JuliaLang/julia#36107 so it's not relevant to this PR.
I think this is good to go since the new convert
definition is compatible with the existing ones. Let's leave it for a few days just in case @c42f or @andyferris want to have a look at it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
This PR fixes a method ambiguity in StaticArrays.jl. I found it while testing my package (which depends on StaticArrays.jl) with Aqua.jl and it popped up because I was overloading
convert
(for something completely unrelated).Before this PR:
With this PR: