-
-
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
Strange error in constructor to Base.Fix2 #35661
Labels
types and dispatch
Types, subtyping and method dispatch
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I originally encountered this while playing around with the type system in IJulia. Here is a minimum example in that context:
I can shorten this to:
At first I could not recreate this in the REPL, but after a lot of playing around I figured out it is dependent on
display(T)
and thusFix2(isequal, T)
being called when showing the result of the first cell.The following script is a minimal reproducible example in versions
1.2
to1.4
:This error occurs only in very specific but reproducible circumstances. It does not occur in the following examples:
Fix2
not called onT
first:Called with different functions (functions other than
isequal
do cause an error if used for both):A second
UnionAll
identical to the first:The text was updated successfully, but these errors were encountered: