(Apologies if this has already been submitted: I couldn't find it in the issue list)
Version Used:
Visual Studio 15.9.4
Steps to Reproduce:
object x = (true, (IEnumerable<int>)new int[0]);
Expected Behavior:
IDE0004 does not fire.
Actual Behavior:
IDE0004 fires, suggesting:
object x = (true, new int[0]);
This creates a boxed (bool, int[]) instead of a boxed (bool, IEnumerable<int>).
Interestingly, this does not happen with var x = (true, (IEnumerable<int>)new int[0]).
(Apologies if this has already been submitted: I couldn't find it in the issue list)
Version Used:
Visual Studio 15.9.4
Steps to Reproduce:
Expected Behavior:
IDE0004 does not fire.
Actual Behavior:
IDE0004 fires, suggesting:
This creates a boxed
(bool, int[])instead of a boxed(bool, IEnumerable<int>).Interestingly, this does not happen with
var x = (true, (IEnumerable<int>)new int[0]).