flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Schmalle (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLEX-34915) Shorthand for Vector (new <String>[]) doesn't transpile to []
Date Thu, 23 Jul 2015 22:27:05 GMT

    [ https://issues.apache.org/jira/browse/FLEX-34915?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14639616#comment-14639616
] 

Michael Schmalle commented on FLEX-34915:
-----------------------------------------

https://git-wip-us.apache.org/repos/asf?p=flex-falcon.git;a=commit;h=7dde95caa788ae977ca5bbe50a881eb4bae59a1d

> 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.0.3
>            Reporter: Josh Tynjala
>            Assignee: Michael Schmalle
>
> 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)

Mime
View raw message