Currently, in order for a method to be found in a lambda context, the arguments must match the parameters exactly.
For example:
public class Context {
int Sum(double a, double b) => a + b;
}
Sum(1.0, 1.0); // returns 2
Sum(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.
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.