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

Submitter:  Gopal.V <t3rmin4t0r>
Submitted:  Sun 06 Jun 2004 04:55:52 PM UTC
   
 
Category:  None Severity:  2 - Minor
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  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>
Group administrator
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>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-06-07 t3rmin4t0r StatusNone Fixed
    Open/ClosedOpen Closed

Back to the top

Powered by Savane 3.15-94dd.
Corresponding source code