Boo
  1. Boo
  2. BOO-441

array[index] += 1 does not compile

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.5.6
    • Fix Version/s: 0.6
    • Component/s: Compiler
    • Labels:
      None
    • Environment:
      Boo r1781 from the repository on Windows, .NET FX 2.0
    • Number of attachments :
      0

      Description

      This small boo program:

      a = array(int, 10)
      index = 5
      a[index] += 1

      gives the following compiler error: BCE0015: Node 'a[index]' has not been correctly processed
      When I replace a[index] += 1 with either
      a[index]++ or a[index] = a[index] + 1
      everything works as expected.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Rodrigo B. de Oliveira
            Reporter:
            Daniel Grunwald
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: