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
Because B.b will be thought to return a ()=> (Char)=> () instead of a (Char)=> (). This behavior is not present when the return types are not lambdas, and it is masked with the caller uses parens, as that executes the returned lambda, which then returns the expected one.
The text was updated successfully, but these errors were encountered:
Fixed in the linked ticket, but life goes on and 2.13.8 warns
warning: Auto-application to `()` is deprecated. Supply the empty argument list `()` explicitly to invoke method b,
or remove the empty argument list from its definition (Java-defined methods are exempt).
In Scala 3, an unapplied method like this will be eta-expanded into a function.
This line compiles
While this line wont
Because B.b will be thought to return a ()=> (Char)=> () instead of a (Char)=> (). This behavior is not present when the return types are not lambdas, and it is masked with the caller uses parens, as that executes the returned lambda, which then returns the expected one.
The text was updated successfully, but these errors were encountered: