Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-18318

Field declaration with initialization followed by a metadata (without semicolon) produce compiler error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • Adobe Flex SDK Previous
    • None
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Create an MXML file with a Script tag
      2. Declare a field and assign a value to this field (do NOT end the line with a semicolon)
      3. Declare a second field preceded by a metadata ([Bindable] in this exemple)

      Actual Results:
      Compiler reports error: "Access to undefined property [Bindable]"

      Expected Results:
      No compilation error

      Workaround (if any):
      Add a semicolon after the first field initialization (do not use the optional-semicolon feature of ActionScript 3).

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: