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

Falcon doesn't understand overridden setters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Apache Falcon 1.0
    • Apache Falcon 1.0
    • Falcon

    Description

      Falcon seems to have some problems when determining the return type of overridden setters.

      Try to compile OverridingSetters.as. The end result should show a small textfield with the text "Some text" in it.

      When trying to compile with falcon, we get the following error and the compilation stops:

      Error: Implicit coercion of a value of type String to an unrelated type Function.
      txtfield.text = barFunc("text");

      A discovered workaround consists on creating a local variable using the getter first, like:
      var barFunc:Function = barFunc;
      txtfield.text = barFunc("text");

      Attachments

        1. OverridingSettersBase.as
          0.4 kB
          Chema Balsas
        2. OverridingSetters.as
          0.5 kB
          Chema Balsas
        3. flex-33321.patch
          1 kB
          Darrell John Loverin

        Issue Links

          Activity

            People

              aharui Alex Harui
              jbalsas Chema Balsas
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: