Alias to type lambda cannot be used without application #17669
s5bug
started this conversation in
Feature Requests
Replies: 3 comments
-
I'm moving this to feature-request because this was an intentional change, although it could change back again as discussed in #9090 |
Beta Was this translation helpful? Give feedback.
0 replies
-
As a question, why does the current error appear at usage and not at declaration? |
Beta Was this translation helpful? Give feedback.
0 replies
-
You mean, why is there no error in the definition of type F = [X] =>> (Any → Any)[X] But the eta-expansion is not performed automatically by the compiler |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Compiler version
3.2.0, 3.2.1-RC2, 3.2.1
Minimized code
Output
Expectation
Scala allows this usage, especially in the context of
where
is equivalent and does compile.
Beta Was this translation helpful? Give feedback.
All reactions