[ https://issues.apache.org/jira/browse/FLEX-34915?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Piotr Zarzycki updated FLEX-34915: ---------------------------------- Fix Version/s: Apache FalconJX 0.5.0 > Shorthand for Vector (new <String>[]) doesn't transpile to [] > ------------------------------------------------------------- > > Key: FLEX-34915 > URL: https://issues.apache.org/jira/browse/FLEX-34915 > Project: Apache Flex > Issue Type: Bug > Components: FalconJX > Affects Versions: Apache FalconJX 0.5.0 > Reporter: Josh Tynjala > Assignee: Piotr Zarzycki > Fix For: Apache FalconJX 0.5.0 > > > Try the following AS3: > var array1:Array = new Array(); > var array2:Array = []; > var vector1:Vector.<String> = new Vector.<String>(); > var vector2:Vector.<String> = new <String>[]; > It results in the following JS: > var /** @type {Array} */ array1 = new Array(); > var /** @type {Array} */ array2 = []; > var /** @type {Vector.<string>} */ vector1 = new Array(); > var /** @type {Vector.<string>} */ vector2 = new {}(); > vector2 should be initialized with [], similar to how array2 is initialized. -- This message was sent by Atlassian JIRA (v6.3.4#6332)