(1623) False Error in Solution Analysis Cannot convert Array to IEnumerable
Hi,
I have a function with the return type IEnumerable<Workitem>. When I return e.g. an new Workitem[0] for an empty list or a variable of type Workitem[], Resharper shows an error with the message:
Cannot convert expression type 'Workitem[]' to return type 'System.Collections.Generic.IEnumerable<Workitem>'
Of course it will compile and run fine. (Typename Workitem was shortend for the web, real typename includes namespace and is a lot longer)
Greetings,
Georg
Please sign in to leave a comment.
Hello Georg
We were not able to reproduce this problem with build #1624. Could you please attach a small solution which would demonstrate this problem? Thank you!
Andrey Serebryansky
Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"