Implicit bool operator

Hello!

I have a specific class that defines implicit casting to bool. Resharper
highlightes like an error the following line:

bool b = b || myClassInstance;

It seems that he doesn't take into account the implicit casting.

Of course, compiler works OK with this line.

WBR, Andrey


Please sign in to leave a comment.