(1623) False Error in Solution Analysis Cannot convert Array to IEnumerable


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)


1 comment
Comment actions Permalink

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


"Develop with pleasure!"

Please sign in to leave a comment.