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

Failed to compile conditional Vector creation

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: Adobe Flex SDK 4.5 (Release), Adobe Flex SDK 4.6 (Release), Apache Flex 4.10.0, Apache Flex 4.11.0
    • Fix Version/s: None

      Description

      Steps to reproduce:
      1. Compile this:
      var v:Vector.<String>;
      v||= new <String>[];

      2. Compilation failed with: "Error code: 1067: Implicit coercion of a value of type Class to an unrelated type _AS3_.vec:Vector."

      AIR sdk compiles this without any errors.
      Workaround: use if condition instead.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ChessMax Maxim Jurat
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: