ReSharper 2.0 Build 236 += Bug?

Looks like I discovered a bug in ReSharper 2.0 Build 236 for Visual Studio 2005.

Suppose I have a class Foo that defines the + operator:

public static Foo operator +(Foo f, string s) { ... }

Now suppose I have a class Bar, whose method M does this:

public void M() { Foo f = new Foo(); f += s; }

While the code compiles perfectly (zero warnings and errors), ReSharper flags the use of "+=" as an error, saying "Cannot convert source type string to target type Foo."

Can someone verify this? Thanks!

1 comment
Comment actions Permalink

This is a known problem, which have been fixed in build 237 (already
available)

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Salty Banana" <no_reply@jetbrains.com> wrote in message
news:11099901.1146158494447.JavaMail.itn@is.intellij.net...

Looks like I discovered a bug in ReSharper 2.0 Build 236 for Visual Studio
2005.

>

Suppose I have a class Foo that defines the + operator:

>

public static Foo operator +(Foo f, string s) { ... }

>

Now suppose I have a class Bar, whose method M does this:

>

public void M() { Foo f = new Foo(); f += s; }

>

While the code compiles perfectly (zero warnings and errors), ReSharper
flags the use of "+=" as an error, saying "Cannot convert source type
string to target type Foo."

>

Can someone verify this? Thanks!



0

Please sign in to leave a comment.