bugDotGNU Portable.NET - Bugs: bug #11443, ENUM values are not treated as...

 
 

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

bug #11443: ENUM values are not treated as integer constants objects

Submitted by:  James Michael DuPont <mdupont>
Submitted on:  Wed 29 Dec 2004 07:39:50 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Wont Fix
Privacy: PublicAssigned to: None
Open/Closed: Closed

Sat 28 May 2005 07:09:27 AM UTC, comment #2:

This behaviour, right or wrong, is the way things are done in the Microsoft framework as well. Pnet works the same in this regard for interoperability.

Deryk Robosson <drobosson>
Project Member
Wed 29 Dec 2004 07:42:49 PM UTC, comment #1:

by typecasting, the problem goes away!
long v = (long) test.WS_a | (long)test.WS_b | 0x0443;

James Michael DuPont <mdupont>
Wed 29 Dec 2004 07:39:50 PM UTC, original submission:

The enums needs to treat the values of them as integer constant objects.

James Michael DuPont <mdupont>

 

Attached Files
file #2304:  testcase11.cs added by mdupont (160B - text/x-csharp - Test case for this issue)

 

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 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sat 28 May 2005 07:09:27 AM UTCdrobossonStatusNone=>Wont Fix
  Open/ClosedOpen=>Closed
Wed 29 Dec 2004 07:39:50 PM UTCmdupontAttached File-=>Added testcase11.cs, #2005

Back to the top


Powered by Savane 3.1-cleanup1