| Priority |
Major |
| Type | Bug |
| State | Can't Reproduce |
| Assignee | Olga Lobacheva |
| Subsystem | No subsystem |
| Affected versions |
No affected versions
|
| Fixed in |
4.1
|
| Fixed in build |
Next build |
| Build |
720
|
| Checked in Build |
915
|
RSRP-57366 |
Cannot apply operator '/' to operands of type 'T' and 'T' |
|
|
public T PerformMathFunctionWithTypeInference<T>(Func<T, T, T> lambdaExpression, T val1, T val2)
{
T result = lambdaExpression(val1, val2);
Console.WriteLine("\tPerformMathFunctionWithTypeInference, val1: {0}, val2: {1}, result: {2}",
val1, val2, result);
Console.WriteLine("\t\tType of T: {0}", typeof(T).Name);
return result;
}
paramClass.PerformMathFunctionWithTypeInference((val1, val2) => val1 / val2, 200.0, 5.0);