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

Support type variable with bounds in quoted pattern #16910

Commits on Apr 28, 2023

  1. Support type variable definitions in quoted patterns

    Support explicit type variable definition in quoted patterns.
    This allows users to set explicit bounds or use the binding twice.
    Previously this was only possible on quoted expression patterns case '{ ... }.
    
    ```scala
    case '[type x; `x`] =>
    case '[type x; Map[`x`, `x`]] =>
    case '[type x <: List[Any]; `x`] =>
    case '[type f[X]; `f`] =>
    case '[type f <: AnyKind; `f`] =>
    ```
    
    Fixes scala#10864
    Fixes scala#11738
    nicolasstucki committed Apr 28, 2023
    Configuration menu
    Copy the full SHA
    40c2922 View commit details
    Browse the repository at this point in the history