-
Notifications
You must be signed in to change notification settings - Fork 1.1k
user defined anonymous PolyFunction causes crash at ElimPolyFunction, GenBCode #10075
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
Comments
bishabosha
added a commit
to dotty-staging/dotty
that referenced
this issue
Oct 30, 2020
more cases also crash but for different reasons: val foo = new PolyFunction {} // error
val bar = new PolyFunction { def bar = 23 } // error
val baz = new PolyFunction { def apply = 23 } // error
val qux = new PolyFunction { def apply[T] = 47 } // error |
@nicolasstucki these still crash, I changed assignment because you made changes to PolyFunction recently |
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Nov 14, 2023
Users should only write lambdas. Fixes scala#10075
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Nov 15, 2023
Users should only write lambdas. Fixes scala#10075
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Nov 20, 2023
Users should only write lambdas. Fixes scala#10075
smarter
added a commit
that referenced
this issue
Nov 23, 2023
The `PolyFunction` trait should only be used for compiler generated encoded lambdas. Any other use case that was allowed before was accidental. In the future, we might consider supporting these if there is a good use case. This would probably require a SIP. Fixes #10075
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Minimized code
Output (click arrow to expand)
The text was updated successfully, but these errors were encountered: