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
[error] Unapplied methods are only converted to functions when a function type is expected.
[error] You can make this conversion explicit by writing `apply _` or `apply(_,_)` instead of `apply`.
[error] val foo1 = Foo.apply.curried(1)(true)
In Scala 2, a case class companion was extending Function.
This is not the case anymore, which means that companions don’t inherit function methods such as
apply
,tupled
,andThen
, andcompose
.One work-around to write code that cross-compiles is to manually write a function that calls the constructor:
The text was updated successfully, but these errors were encountered: