Return-Path: X-Original-To: apmail-flex-issues-archive@minotaur.apache.org Delivered-To: apmail-flex-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2183518CE5 for ; Thu, 23 Jul 2015 22:23:39 +0000 (UTC) Received: (qmail 46618 invoked by uid 500); 23 Jul 2015 22:23:04 -0000 Delivered-To: apmail-flex-issues-archive@flex.apache.org Received: (qmail 46589 invoked by uid 500); 23 Jul 2015 22:23:04 -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 46579 invoked by uid 99); 23 Jul 2015 22:23:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Jul 2015 22:23:04 +0000 Date: Thu, 23 Jul 2015 22:23:04 +0000 (UTC) From: "Michael Schmalle (JIRA)" To: issues@flex.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (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 [ https://issues.apache.org/jira/browse/FLEX-34915?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael Schmalle closed FLEX-34915. ----------------------------------- Resolution: Fixed Assignee: Michael Schmalle Fixed commit 7dde95caa788ae977ca5bbe50a881eb4bae59a1d > 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.0.3 > Reporter: Josh Tynjala > Assignee: Michael Schmalle > > 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)