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
Overloading resolution type checks the function literal without an expected type, and then discards the overloaded alternative as Function1 doesn't conform to Comparator.
Java can handle this, presumably because it filters overloaded alternatives based on arity first (we filter them based on isApplicable, which might tuple args, add defaults, etc).
Maybe this will wind up as a wont-fix, but we should document the limitation in the SAM SIP for 2.12.
The text was updated successfully, but these errors were encountered:
Overloading resolution type checks the function literal without an expected type, and then discards the overloaded alternative as
Function1
doesn't conform toComparator
.Java can handle this, presumably because it filters overloaded alternatives based on arity first (we filter them based on
isApplicable
, which might tuple args, add defaults, etc).Maybe this will wind up as a wont-fix, but we should document the limitation in the SAM SIP for 2.12.
The text was updated successfully, but these errors were encountered: