-
-
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
subtyping bug: diagonality is ignored in union #26716
Labels
types and dispatch
Types, subtyping and method dispatch
Comments
JeffBezanson
added a commit
that referenced
this issue
Jan 6, 2020
JeffBezanson
added a commit
that referenced
this issue
Jan 6, 2020
JeffBezanson
added a commit
that referenced
this issue
Jan 15, 2020
KristofferC
pushed a commit
that referenced
this issue
Apr 11, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Both julia 0.6.2 and dev incorrectly say true on these judgments (on the left we have equivalent types, on the right the same type):
Correct answer is false, because variable
T
is (1) diagonal (2) matched both withP
andBool
.If we rewrite the RHS into an equivalent type with an explicit diagonal type, then julia gives a correct answer.
The text was updated successfully, but these errors were encountered: