-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
explicit "PolyFunction" type annotation cause ClassCastException #8299
Comments
This seems resolved, |
|
Ah, sorry. |
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Sep 7, 2023
`PolyFunction` must be refined with an `apply` method that has a single parameter list with no by-name nor varargs parameters. It may optionally have type parameters. Some of these restrictions could be lifted later, but for now these features are not properly handled by the compiler. Fixes scala#8299 Fixes scala#18302 fixup
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Sep 19, 2023
`PolyFunction` must be refined with an `apply` method that has a single parameter list with no by-name nor varargs parameters. It may optionally have type parameters. Some of these restrictions could be lifted later, but for now these features are not properly handled by the compiler. Fixes scala#8299 Fixes scala#18302 fixup
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Oct 12, 2023
`PolyFunction` must be refined with an `apply` method that has a single parameter list with no by-name nor varargs parameters. It may optionally have type parameters. Some of these restrictions could be lifted later, but for now these features are not properly handled by the compiler. Fixes scala#8299 Fixes scala#18302
please re-open this issue. or should I create new issue? 👀 |
Open a new ticket for the new issue you show. 😄 |
WojciechMazur
added a commit
that referenced
this issue
Jun 19, 2024
`PolyFunction` must be refined with an `apply` method that has a single parameter list with no by-name nor varargs parameters. It may optionally have type parameters. Some of these restrictions could be lifted later, but for now these features are not properly handled by the compiler. Fixes #8299 Fixes #18302 [Cherry-picked e5ca0c4][modified]
WojciechMazur
added a commit
that referenced
this issue
Jun 20, 2024
`PolyFunction` must be refined with an `apply` method that has a single parameter list with no by-name nor varargs parameters. It may optionally have type parameters. Some of these restrictions could be lifted later, but for now these features are not properly handled by the compiler. Fixes #8299 Fixes #18302 [Cherry-picked e5ca0c4][modified]
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
minimized code
dotty version:
0.23.0-bin-20200211-5b006fb-NIGHTLY
sbt run
logexpectation
compile error or no Exception.
The text was updated successfully, but these errors were encountered: