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

improve the inferrability of isequal(::Any, ::Any) #42195

Merged
merged 1 commit into from
Sep 11, 2021
Merged

Commits on Sep 10, 2021

  1. improve the inferrability of isequal(::Any, ::Any)

    Currently, the return type of `isequal(::Any, ::Any)` is inferred as
    `Union{Bool,Missing}` because it takes the possibilities of e.g.
    `==(::Any, ::Missing)` into account.
    But actually `isequal` already handles every `missing` case by dispatch:
    <https://github.com/JuliaLang/julia/blob/2f00c5f6e2211ed1588976dbbe7b022148716d95/base/missing.jl#L80-L82>
    , and thus we can improve the inferrability by type annotation.
    aviatesk committed Sep 10, 2021
    Configuration menu
    Copy the full SHA
    c4dd759 View commit details
    Browse the repository at this point in the history