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

Failed to compile conditional Vector creation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Adobe Flex SDK 4.5 (Release), Adobe Flex SDK 4.6 (Release), Apache Flex 4.10.0, Apache Flex 4.11.0
    • 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

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

            Dates

              Created:
              Updated: