Boo
  1. Boo
  2. BOO-297

Enum values can't be negative

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.5
    • Fix Version/s: 0.7
    • Component/s: Parser
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Enum members with explicit integer values can't be assigned negative values. This piece of code gives an "unexpected token" error:

      enum State:
      Deleted = -1
      Default = 0
      Public = 1

      (This works:

      enum State:
      Deleted = 9999
      Default = 0
      Public = 1
      )

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Rodrigo B. de Oliveira
            Reporter:
            Hans-Christian Holm
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 1 hour
              1h
              Remaining:
              Remaining Estimate - 1 hour
              1h
              Logged:
              Time Spent - Not Specified
              Not Specified