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
{{ message }}
Repository navigation
v5 Regression: Casting object[] to more narrow generic collection fails with a single element, but not with two #2208
Given that [System.Collections.Generic.List[int]]1 works (remove the array wrapper), it can be coerced to work generally by wrapping the target in a subexpression:
Activity
vors commentedon Sep 8, 2016
Confirmed. Thank you, Oisin Grehan (@oising) !
oising commentedon Sep 8, 2016
Workaround
Given that
[System.Collections.Generic.List[int]]1works (remove the array wrapper), it can be coerced to work generally by wrapping the target in a subexpression: