| Author |
Message |
nmgomes
Joined: 04 Feb 2011 Posts: 2
|
Posted: Fri Feb 11, 2011 1:13 am Post subject: Invalid C# statement |
|
|
Hi,
If you look at method private void NormalizePercentStyle(bool normalizeRow);
from type "System.Windows.Forms.Design.StyleCollectionEditor+StyleEditorForm, System.Design" with C# language selected you will see the following piece of code:
| Code: |
float num2 = 0f;
[...]
switch (num2)
{
case 100f:
case 0f:
return;
} |
throws a compilation error since float values are not valid for switch statements.
I check previous version an the problem is also present. |
|
| Back to top |
|
 |
Clive Tong
Joined: 04 Dec 2008 Posts: 281
|
Posted: Fri Feb 11, 2011 10:01 am Post subject: |
|
|
| Thanks for reporting this. I've logged it as issue RP-1038. |
|
| Back to top |
|
 |
|
|
All times are GMT + 1 Hour
|
| Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group