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 CAA8D18A05 for ; Wed, 30 Mar 2016 01:58:25 +0000 (UTC) Received: (qmail 74891 invoked by uid 500); 30 Mar 2016 01:58:25 -0000 Delivered-To: apmail-flex-issues-archive@flex.apache.org Received: (qmail 74858 invoked by uid 500); 30 Mar 2016 01:58:25 -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 74842 invoked by uid 99); 30 Mar 2016 01:58:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Mar 2016 01:58:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 9503A2C1F5A for ; Wed, 30 Mar 2016 01:58:25 +0000 (UTC) Date: Wed, 30 Mar 2016 01:58:25 +0000 (UTC) From: "Justin Mclean (JIRA)" To: issues@flex.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLEX-34951) Returning undefined on a non-void function does not cause an error on compiling 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-34951?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15217232#comment-15217232 ] Justin Mclean commented on FLEX-34951: -------------------------------------- Can you provide some same code to illustrate this? > Returning undefined on a non-void function does not cause an error on compiling > ------------------------------------------------------------------------------- > > Key: FLEX-34951 > URL: https://issues.apache.org/jira/browse/FLEX-34951 > Project: Apache Flex > Issue Type: Bug > Affects Versions: Apache Flex 4.14.1 > Environment: Linux 4.2.3 x86_64 > Reporter: Sword Dragon > > For example if a function expects to get int returned but a String is being returned the compiler exits with an error but if undefined is being returned the compiler accepts this. -- This message was sent by Atlassian JIRA (v6.3.4#6332)