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

Reimplement support for type aliases in SAM types #18317

Merged
merged 1 commit into from
Aug 1, 2023

Commits on Jul 31, 2023

  1. Reimplement support for type aliases in SAM types

    This was dropped in scala#18201 which restricted SAM types to valid parent types,
    but it turns out that there is code in the wild that relies on refinements
    being allowed here.
    
    To support this properly, we had to enhance ExpandSAMs to move refinements into
    type members to pass Ycheck (previous Scala 3 releases would accept the code in
    tests/run/i18315.scala but fail Ycheck).
    
    Fixes scala#18315.
    smarter committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    d2153ed View commit details
    Browse the repository at this point in the history