bugDotGNU Portable.NET - Bugs: bug #9241, Enum initializers accept const...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #9241: Enum initializers accept const floats

Submitted by:  Gopal.V <t3rmin4t0r>
Submitted on:  Sun 06 Jun 2004 04:55:52 PM UTC  
 
Category: NoneSeverity: 2 - Minor
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Gopal.V <t3rmin4t0r>
Open/Closed: Closed

Mon 07 Jun 2004 02:06:12 PM UTC, comment #1:

Fixed in CVS on 7th June 2004 (was stupid anyway)

Gopal.V <t3rmin4t0r>
Project AdministratorIn charge of this item.
Sun 06 Jun 2004 04:55:52 PM UTC, original submission:

public class XFOO
{
const float PI=3.14f
enum XBAR
{
Member = PI, // initializes as '3' which is wrong
};
}

I think it has to do with one of my checkins a year ago ..
I'll investigate and see if I can close this , else it's
for the taking :)

Gopal.V <t3rmin4t0r>
Project AdministratorIn charge of this item.

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Mon 07 Jun 2004 02:06:12 PM UTCt3rmin4t0rStatusNone=>Fixed
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1