I have this code:
Action<A, B> fnUpdate = (someBool) ? (a, b) => a.propOne = b : (a, b) => a.propTwo = d;
Why can the compiler not resolve the types of a
and b
, just because it is assigned in a ternary operator? it seems quite straight forward at face value.