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

fix #31993, intersection of Type{Vec} and Type{<:Vec{T}} #31997

Merged
merged 1 commit into from
May 11, 2019
Merged

Conversation

JeffBezanson
Copy link
Sponsor Member

fix #31993

@JeffBezanson JeffBezanson added domain:types and dispatch Types, subtyping and method dispatch kind:bugfix This change fixes an existing bug backport 1.2 labels May 10, 2019
let X = LinearAlgebra.Symmetric{T, S} where S<:(AbstractArray{U, 2} where U<:T) where T,
Y = Union{LinearAlgebra.Hermitian{T, S} where S<:(AbstractArray{U, 2} where U<:T) where T,
LinearAlgebra.Symmetric{T, S} where S<:(AbstractArray{U, 2} where U<:T) where T}
@test X <: Y
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm out of my depth here, but just in case: this test passes already, is there a typo?

Copy link
Sponsor Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it passes on master, but didn't pass with one version of this change I tried (found by an assertion failure during the build).

@Keno Keno merged commit bfcf172 into master May 11, 2019
@martinholters martinholters deleted the jb/fix31993 branch May 11, 2019 17:45
KristofferC pushed a commit that referenced this pull request May 13, 2019
@KristofferC KristofferC mentioned this pull request May 13, 2019
58 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:types and dispatch Types, subtyping and method dispatch kind:bugfix This change fixes an existing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ambiguity error with non-applicable methods
4 participants