[216] possible syntax highlighting bug?

I'm not sure if this is VS2005 or R#, but consider the following code:

string someString = "some value";
switch (someOtherString)
{
case someString:
break;
case "A Constant String":
break;
}

The first case statement is underlined correctly, but its flyover message is
"Cannot convert expression of type 'string' to type 'string' when it should
say something like "A constant value is expected."


1 comment
Comment actions Permalink

Thank you. We'll fix this.

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Blake Bishop" <bbishop@sorenson.com> wrote in message
news:dsis1a$1hl$1@is.intellij.net...

I'm not sure if this is VS2005 or R#, but consider the following code:

>

string someString = "some value";
switch (someOtherString)
{
case someString:
break;
case "A Constant String":
break;
}

>

The first case statement is underlined correctly, but its flyover message
is "Cannot convert expression of type 'string' to type 'string' when it
should say something like "A constant value is expected."



0

Please sign in to leave a comment.