[ 
https://issues.apache.org/jira/browse/FLEX-33918?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Erik de Bruin reassigned FLEX-33918:
------------------------------------

    Assignee: Erik de Bruin

> Unknown type error generated for known type
> -------------------------------------------
>
>                 Key: FLEX-33918
>                 URL: https://issues.apache.org/jira/browse/FLEX-33918
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: FalconJX
>         Environment: Mac OS X
>            Reporter: Peter Ent
>            Assignee: Erik de Bruin
>
> import org.apache.flex.html.staticControls.List;
> …
> for(var i:int=0; i < columns.length; i++) {
>     var column:List = columns[i];
> I get this error while compiling:
> /Users/pent/Documents/Apache 
> Flex/DataGridXcompile/bin/js-debug/org/apache/flex/html/staticControls/beads/DataGridView.js:121:
>  WARNING - Bad type annotation. Unknown type List
>     var /** @type {List} */ column = this.columns[i];
>                    ^
> What's funny about this last error is that I also have this ActionScript code 
> which does not produce an error:
> for(var i:int=0; i < pm.columnLabels.length; i++) {
>     var column:List = new SimpleList();
> The JavaScript code generated for these statements is:
> for (var /** @type {number} */ i = 0; i < pm.get_columnLabels().length; i++) {
>     var /** @type {org.apache.flex.html.staticControls.List} */ column = new 
> org.apache.flex.html.staticControls.SimpleList();



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to