Boo

Cannot produce or consume long enum

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 0.8.2
  • Fix Version/s: 0.9
  • Component/s: None
  • Labels:
    None
  • Testcase included:
    yes
  • Number of attachments :
    0

Description

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).

Activity

Hide
Cedric Vivier added a comment -

Fixed in rev. 3168

Show
Cedric Vivier added a comment - Fixed in rev. 3168

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: