[211] Reformat code with Shorten references adds redundant cast

Hi,

ReSharper still from time to time adds a cast to the following code:

Before reformat:
Assert.AreEqual(1, bla);

After reformat:
Assert.AreEqual((object)1, (object)bla);

It only happens if option "Shorten references" ist used. And the cast is
marked as redundant ;)


Sincerley,
Stefan Lieser


1 comment
Comment actions Permalink

This is known problem.
Will be fixed soon

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Stefan Lieser" <slieser@t-online.de> wrote in message
news:dnp61a$8so$1@is.intellij.net...

Hi,

>

ReSharper still from time to time adds a cast to the following code:

>

Before reformat:
Assert.AreEqual(1, bla);

>

After reformat:
Assert.AreEqual((object)1, (object)bla);

>

It only happens if option "Shorten references" ist used. And the cast is
marked as redundant ;)

>
>

Sincerley,
Stefan Lieser

>



0

Please sign in to leave a comment.