Issue Details (XML | Word | Printable)

Key: BOO-1130
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Cedric Vivier
Reporter: Cedric Vivier
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Boo

Cannot produce or consume long enum

Created: 22/Jan/09 03:23 AM   Updated: 22/Jan/09 01:34 PM   Resolved: 22/Jan/09 01:34 PM
Return to search
Component/s: None
Affects Version/s: 0.8.2
Fix Version/s: 0.9

Time Tracking:
Not Specified

Testcase included: yes


 Description  « Hide
enum W:
    Long = 0xff0000000000

assert W.Long == 0xff0000000000

The assert fails as Boo silently emits int enums only.

We need to be able to switch to long enum when at least one of the enum values is a long.

Edited the title as it is more broad than that since using a long enum from an external assembly (C#-built for instance) produce invalid IL (using i4 always).



Rodrigo B. de Oliveira made changes - 22/Jan/09 09:24 AM
Field Original Value New Value
Fix Version/s 0.9 [ 13816 ]
Fix Version/s 0.9.1 [ 14922 ]
Cedric Vivier made changes - 22/Jan/09 09:44 AM
Description {code}
enum W:
    Long = 0xff0000000000

assert W.Long == 0xff0000000000
{code}
The assert fails as Boo silently emits int enums only.

We need to be able to switch to long enum when at least one of the enum values is a long.
{code}
enum W:
    Long = 0xff0000000000

assert W.Long == 0xff0000000000
{code}
The assert fails as Boo silently emits int enums only.

We need to be able to switch to long enum when at least one of the enum values is a long.


Edited the title as it is more broad than that since using a long enum from an external assembly (C#-built for instance) produce invalid IL (using i4 always).
Fix Version/s 0.9.1 [ 14922 ]
Fix Version/s 0.9 [ 13816 ]
Summary enum long is casted to enum int silently Cannot produce or consume long enum
Cedric Vivier added a comment - 22/Jan/09 01:34 PM

Fixed in rev. 3168


Cedric Vivier made changes - 22/Jan/09 01:34 PM
Resolution Fixed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]