Detecting errors with "as" operator

If someone write a line of code like:

bool foo = bar as bool;

ReSharper doesn't highlight it as an error, even though the compiler
complains that the "as" operator can only be used with reference types.



1 comment
Comment actions Permalink

We've already done this in 2.0

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Paul Bradshaw" <pbradshaw@advsol.com> wrote in message
news:da3pv1$e9s$1@is.intellij.net...

If someone write a line of code like:

>

bool foo = bar as bool;

>

ReSharper doesn't highlight it as an error, even though the compiler
complains that the "as" operator can only be used with reference types.

>
>



0

Please sign in to leave a comment.