flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maxim Jurat (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLEX-33888) Failed to compile conditional Vector creation
Date Sun, 10 Nov 2013 13:44:17 GMT
Maxim Jurat created FLEX-33888:

             Summary: Failed to compile conditional Vector creation
                 Key: FLEX-33888
                 URL: https://issues.apache.org/jira/browse/FLEX-33888
             Project: Apache Flex
          Issue Type: Bug
          Components: .Unspecified - Compiler
    Affects Versions: Adobe Flex SDK 4.5 (Release), Adobe Flex SDK 4.6 (Release), Apache Flex
4.10.0, Apache Flex 4.11.0
            Reporter: Maxim Jurat

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.

This message was sent by Atlassian JIRA

View raw message