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

type intersection bug in Ref{Union{Int,T}} where T #25752

Closed
JeffBezanson opened this issue Jan 25, 2018 · 0 comments · Fixed by #29406
Closed

type intersection bug in Ref{Union{Int,T}} where T #25752

JeffBezanson opened this issue Jan 25, 2018 · 0 comments · Fixed by #29406
Labels
bug Indicates an unexpected problem or unintended behavior types and dispatch Types, subtyping and method dispatch

Comments

@JeffBezanson
Copy link
Member

Difficult to tell if this is a duplicate of some existing subtyping issue, but it's important:

julia> typeintersect(Base.RefValue, Ref{Union{Int,T}} where T)
Union{}

The answer should be (ideally) RefValue{Union{Int,T}} where T.

@JeffBezanson JeffBezanson added bug Indicates an unexpected problem or unintended behavior types and dispatch Types, subtyping and method dispatch labels Jan 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior types and dispatch Types, subtyping and method dispatch
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant