You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Andy Dufilie (JIRA)" <ji...@apache.org> on 2015/12/24 07:25:49 UTC

[jira] [Created] (FLEX-35004) package-level functions do not get cross-compiled

Andy Dufilie created FLEX-35004:
-----------------------------------

             Summary: package-level functions do not get cross-compiled
                 Key: FLEX-35004
                 URL: https://issues.apache.org/jira/browse/FLEX-35004
             Project: Apache Flex
          Issue Type: Bug
          Components: Falcon, FlexJS
    Affects Versions: Apache FlexJS 0.5.0
            Reporter: Andy Dufilie
            Priority: Minor


Example file (packageLevelFunction.as):
{code}
package foo.bar {
	public function packageLevelFunction(a:int, b:int):int {
		return a + b;
	}
}
{code}

This file works fine in ActionScript, but when cross-compiling to JavaScript, the output file (packageLevelFunction.js) is blank. It should generate something like this:

{code}
goog.provide('foo.bar.packageLevelFunction');
foo.bar.packageLevelFunction = function(a, b) { return a + b; };
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)