Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 80E7F200ABF for ; Tue, 3 May 2016 09:20:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7FAFA1609F3; Tue, 3 May 2016 09:20:14 +0200 (CEST) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E39D91609F4 for ; Tue, 3 May 2016 09:20:13 +0200 (CEST) Received: (qmail 42929 invoked by uid 500); 3 May 2016 07:20:13 -0000 Mailing-List: contact issues-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list issues@flex.apache.org Received: (qmail 42894 invoked by uid 99); 3 May 2016 07:20:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 May 2016 07:20:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id F3F3A2C1F68 for ; Tue, 3 May 2016 07:20:12 +0000 (UTC) Date: Tue, 3 May 2016 07:20:12 +0000 (UTC) From: "Piotr Zarzycki (JIRA)" To: issues@flex.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (FLEX-34915) Shorthand for Vector (new []) doesn't transpile to [] MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 03 May 2016 07:20:14 -0000 [ 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 []) 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. = new Vector.(); > var vector2:Vector. = new []; > It results in the following JS: > var /** @type {Array} */ array1 = new Array(); > var /** @type {Array} */ array2 = []; > var /** @type {Vector.} */ vector1 = new Array(); > var /** @type {Vector.} */ vector2 = new {}(); > vector2 should be initialized with [], similar to how array2 is initialized. -- This message was sent by Atlassian JIRA (v6.3.4#6332)