Build 153 highlight bugs??

Hi All

I just installed build 153 of resharper from the EAP website but I'm getting two rather funny highlight bugs. I'll paste the code for one of the two down here but I can't do that for the other one as it depends on a specific DLL.

For the first one here's the description.

If you declare a jagged array (in my case of doubles) where the first array is a rectangular array something goes wrong with the highlighting. So if I do:


Resharper hightlights it with the error color and the message says: Cannot convert source type "double[,][]" to target type "double[][,]"


The second highlight bug is probably due to something strange in the DLL but the code does compile (with no warnings etc.) so I guess there's something wrong some where. The point is this:

I have a method that returns an encapsulated enum. The problem part is that the enum is defined in an interface, i.e.


Which isn't possible according to the C# compiler if you try this but it still is in the DLL.
My method refers to the IFunny.Silly enum as return value and Resharper tells me that it can't find the Silly enum and colors it with the error color again.

Should I add these to the bug list somewhere or ...

Regards Patrick

PS here's the code to reproduce the first bug

1 comment
Comment actions Permalink

Thank you for your feedback.

These two issues you report are definitely bugs in ReSharper. I've added
them to the tracker:
http://www.intellij.net/tracker/resharper/viewSCR?publicId=5632 (ReSharper
incorrectly processes jagged arrays)
http://www.intellij.net/tracker/resharper/viewSCR?publicId=5633 (ReSharper
does not recognize enums in interfaces).
Thanks once more for taking time to report the issues. Your feedback is very
much appreciated.

--
Andrey Simanovsky
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"



"Patrick" <no_mail@jetbrains.com> wrote in message
news:10567829.1106214734153.JavaMail.itn@is.intellij.net...

Hi All

>

I just installed build 153 of resharper from the EAP website but I'm
getting two rather funny highlight bugs. I'll paste the code for one of
the two down here but I can't do that for the other one as it depends on a
specific DLL.

>

For the first one here's the description.

>

If you declare a jagged array (in my case of doubles) where the first
array is a rectangular array something goes wrong with the highlighting.
So if I do:

>

>

Resharper hightlights it with the error color and the message says: Cannot
convert source type "double[,][]" to target type "double[][,]"

>
>

The second highlight bug is probably due to something strange in the DLL
but the code does compile (with no warnings etc.) so I guess there's
something wrong some where. The point is this:

>

I have a method that returns an encapsulated enum. The problem part is
that the enum is defined in an interface, i.e.

>

 {
>    enum Silly
>    {
>        value1, value2
>    }
> }]]>

>

Which isn't possible according to the C# compiler if you try this but it
still is in the DLL.
My method refers to the IFunny.Silly enum as return value and Resharper
tells me that it can't find the Silly enum and colors it with the error
color again.

>

Should I add these to the bug list somewhere or ...

>

Regards Patrick

>

PS here's the code to reproduce the first bug

>

 {
>    public class ClassA
>    {
>        private double[,][] mValues = null;
>
>        private double[][] mMoreValues = null;
>
>        public ClassA()
>        {
>            mValues = new double[10,10][];
>            for (int i = 0; i < 10; i++)
>            {
>                for (int j = 0; j < 10; j++)
>                {
>                    mValues[i, j] = new double[3];
>                }
>            }
>
>            mMoreValues = new double[10][];
>            for (int i = 0; i < 10; i++)
>            {
>                mMoreValues+ = new double[3];
>            }
>        }
>    }
> }]]>



0

Please sign in to leave a comment.