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 2016/01/18 18:07:39 UTC
[jira] [Commented] (FLEX-35012) Classes internal to a package-level
function get null package
[ https://issues.apache.org/jira/browse/FLEX-35012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15105528#comment-15105528 ]
Andy Dufilie commented on FLEX-35012:
-------------------------------------
I believe this commit may fix the issue, but I am unable to test it at the moment.
https://github.com/adufilie/flex-falcon/commit/e11c420ba9843665af09d090ce4c8216f420d749
> Classes internal to a package-level function get null package
> -------------------------------------------------------------
>
> Key: FLEX-35012
> URL: https://issues.apache.org/jira/browse/FLEX-35012
> Project: Apache Flex
> Issue Type: Bug
> Components: FalconJX
> Affects Versions: Apache FalconJX 0.5.0
> Reporter: Andy Dufilie
> Priority: Minor
>
> AS input:
> {code}
> package foo.bar {
> public function testPackageLevelFunction():Number {
> return Internal.x;
> }
> }
> internal class Internal {
> public static const x:Number = 3;
> }
> {code}
> Incorrect JS output:
> {code}
> goog.provide('foo.bar.testPackageLevelFunction');
> foo.bar.testPackageLevelFunction = function() {
> return null.Internal.x;
> }
> null.Internal = function() {
> };
> null.Internal.x = 3;
> null.Internal.prototype.FLEXJS_CLASS_INFO = { names: [{ name: 'Internal', qName: 'null.Internal'}] };
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)