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

leq for reals falls back to le and eq #46341

Merged
merged 1 commit into from
Aug 17, 2022
Merged

Conversation

jishnub
Copy link
Contributor

@jishnub jishnub commented Aug 14, 2022

Fixes #46327.
After this,

julia> struct A <: Real end

julia> Base.:(<)(::A, ::A) = false

julia> Base.:(==)(::A, ::A) = false

julia> A() <= A()
false

@KristofferC KristofferC merged commit ef511c9 into JuliaLang:master Aug 17, 2022
@jishnub
Copy link
Contributor Author

jishnub commented Aug 17, 2022

@KristofferC can this be backported to 1.8, as this may be seen as a bugfix?

@KristofferC KristofferC added backport 1.8 Change should be backported to release-1.8 backport 1.6 Change should be backported to release-1.6 labels Aug 17, 2022
KristofferC pushed a commit that referenced this pull request Aug 17, 2022
@jishnub jishnub deleted the leqreal branch August 17, 2022 16:49
@KristofferC KristofferC removed the backport 1.8 Change should be backported to release-1.8 label Sep 7, 2022
KristofferC pushed a commit that referenced this pull request Dec 21, 2022
KristofferC pushed a commit that referenced this pull request Dec 21, 2022
KristofferC pushed a commit that referenced this pull request Dec 21, 2022
staticfloat pushed a commit that referenced this pull request Dec 23, 2022
KristofferC pushed a commit that referenced this pull request Oct 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 1.6 Change should be backported to release-1.6
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Default leq method for Reals seems inconsistent with docstring
2 participants