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

inference: apply tmerge limit elementwise to the Union #50927

Merged
merged 3 commits into from
Sep 15, 2023

Commits on Sep 12, 2023

  1. inference: apply tmerge limit elementwise to the Union

    This allows forming larger unions, as long as each element in the Union
    is both relatively distinct and relatively simple. For example:
    
        tmerge(Base.BitSigned, Nothing) == Union{Nothing, Int128, Int16, Int32, Int64, Int8}
        tmerge(Tuple{Base.BitSigned, Int}, Nothing) == Union{Nothing, Tuple{Any, Int64}}
        tmerge(AbstractVector{Int}, Vector) == AbstractVector
    
    Disables a test from dc8d885.
    
    Co-authored-by: Oscar Smith <oscardssmith@gmail.com>
    2 people authored and vtjnash committed Sep 12, 2023
    Configuration menu
    Copy the full SHA
    f4ac759 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bae558c View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2023

  1. Configuration menu
    Copy the full SHA
    550281a View commit details
    Browse the repository at this point in the history