You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2018/12/24 18:23:50 UTC

[GitHub] mrchnk opened a new issue #69: compiler omits expressions with dynamic object access

mrchnk opened a new issue #69: compiler omits expressions with dynamic object access
URL: https://github.com/apache/royale-compiler/issues/69
 
 
   Compiler omits expression with both "." and "[]" access to dynamic `Object`.
   
   ```
   var object: Object = { coordinate: [10, 20] };
   var x: Number = object.coordinate[0];
   ```
   
   That producing
   ```
   var /** @type {Object} */ object = {coordinate:[10, 20]};
   var /** @type {number} */ x = ;
   ```
   
   I also created a minimal example project to reproduce that issue at https://github.com/mrchnk/royale-compiler-problems/tree/master/dynamic-object-access
   
   I found that bug in npm distribution of compiler @apache-royale/royale-js@0.9.4
   That problem persists in the nightly build of compiler 1723
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services