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 polymorphic functions with erased parameters #18293

Merged
merged 1 commit into from
Jul 27, 2023

Commits on Jul 26, 2023

  1. Support polymorphic functions with erased parameters

    This adds support for
    ```scala
    [T1, ..., Tn] => ([erased] x1: X1, ..., [erased] xm: Xm) => R
    ```
    
    Polymorphic function types with erased parameters are represented as
    using a refinement on `PolyFunction`. `ErasedFunction` is not needed.
    ```scala
    PolyFunction {
      def apply[T1, ..., Tn]([erased] x1: X1, ..., [erased] xm: Xm): R
    }
    ```
    nicolasstucki committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    5625107 View commit details
    Browse the repository at this point in the history