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
Currently, in order for a method to be found in a lambda context, the arguments must match the parameters exactly.
For example:
publicclassContext{intSum(doublea,doubleb)=>a+b;}Sum(1.0,1.0);// returns 2Sum(1,1);// throws a "method not found" exception, but ideally it should return 2.
Even though an int can be implicitly cast to a double, the method fails.
This is similar to issue #37 but deals with primitive types only.
The text was updated successfully, but these errors were encountered:
Currently, in order for a method to be found in a lambda context, the arguments must match the parameters exactly.
For example:
Even though an
int
can be implicitly cast to adouble
, the method fails.This is similar to issue #37 but deals with primitive types only.
The text was updated successfully, but these errors were encountered: