-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
undetected method ambiguity #12814
Labels
types and dispatch
Types, subtyping and method dispatch
Comments
it's not # 265, it's an undetected method ambiguity. here's the signature of the method that matched: |
SimonDanisch
added a commit
to SimonDanisch/FixedSizeArrays.jl
that referenced
this issue
Sep 1, 2015
moving around Mat declaration to work around JuliaLang/julia#12814
This seems very similar on the newest rc2: immutable Style{T} end
test{T <: Union{AbstractFloat, Array}}(::Array{T,3}, ::Style{:iso}) = "iso"
test{T <: Union{AbstractFloat, Array}}(::Array{T,3}, ::Style) = "default"
test(rand(Float32, 3,3,3), Style{:x}()) #both call default
test(rand(Float32, 3,3,3), Style{:iso}()) Changing declaration order also makes it work "correctly" |
Seems to be fixed after #18457. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I ran into the following:
@yuyichao comments: probably not #265 but similar
The text was updated successfully, but these errors were encountered: