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

Need a clearer compiler error when an item which should be in a <Declarations> section is not.

    XMLWordPrintableJSON

Details

    Description

      Steps to reproduce:
      1. Put a <RadioButtonGroup /> at the root of an application (instead of in a <Declarations> block) and compile.

      Actual Results:
      Error: In initializer for 'mxmlContentFactory', type spark.components.RadioButtonGroup is not assignable to target type Array or target element type mx.core.IVisualElement.

      Expected Results:
      It would be easier for people hitting this problem to solve it if it said something like "RadioButtonGroup needs to in a Declarations section."

      Workaround (if any):

      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: