-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Polymorphic function value not allowed depending on placement of braces #12323
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
We should get rid of that implementation restriction. |
It's not quite clear to me what the actual implementation restriction currently is? Is it that polymorphic function literals are not allowed to be nullary (aside from the type parameters)? I opened a PR just to fix that syntax anomaly here: #12331. Maybe we should create a separate ticket for the functionality change? |
I opened lampepfl/dotty-feature-requests#206 |
Seems to be a variation of #6725:
The text was updated successfully, but these errors were encountered: