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
(v6.1#6144)