bugDotGNU Portable.NET - Bugs: bug #2782, Coercion of byte enums

 
 

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

bug #2782: Coercion of byte enums

Submitter:  Gopal.V <t3rmin4t0r>
Submitted:  Tue 11 Mar 2003 07:34:11 AM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Wont Fix Privacy:  Public
Assigned to:  None Open/Closed:  Closed

Discussion

Sat 04 Jun 2005 10:09:15 AM UTC, comment #1: 

This works as expected if you cast AA.b as an int.  This is the expected behavior under the MS platform and should remain this way for interoperability.

Deryk Robosson <drobosson>
Group Member
Tue 11 Mar 2003 07:34:11 AM UTC, original submission:  

for

enum a : byte { x};

a.x + 10 does not work .

Shouldn't the compiler figure out it can coerce 10 to "enum a"
or "byte" ?.

a.x + (byte)10 works


Gopal.V <t3rmin4t0r>
Group administrator

 

Attached Files

Attached Files
file #345:  test-40.cs added by t3rmin4t0r (129B - application/octet-stream - test case)

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

 

Votes

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.

 

History

Follow 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-06-04 drobosson Open/ClosedOpen Closed
2005-06-04 drobosson StatusNone Wont Fix

Back to the top

Powered by Savane 3.16-a7ba.
Corresponding source code