You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It should be equivalent to [A] => (x: A) => x but instead we get an error:
scala>valid: [A] =>A=>A= [A] => (x: A) => x
valid:PolyFunction{apply: [A](x$1: A):A} = <function1>
scala>valid: [A] =>A=>A= [A] => ((x: A) => x)
1|valid: [A] =>A=>A= [A] => ((x: A) => x)
|^|Implementationrestriction: polymorphic function literals must have a value parameter
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
It should be equivalent to
[A] => (x: A) => x
but instead we get an error:The text was updated successfully, but these errors were encountered: