Laturine opened a new issue #179:
URL: https://github.com/apache/royale-compiler/issues/179


   Hi I believe we found an error in the transpiler 
   
   ActionScript
   ```actionscript
   var string1 : String;
   var foo : Date;
   string1 = (foo.fullYear + 1).toString();
   ```
   Javascript output
   ```javascript
     var /** @type {string} */ string1 = null;
     var /** @type {Date} */ foo = null;
     string1 = foo.getFullYear() + 1.toString();
   ```
   Paren precedence seems to not be honored.
   
   Compiler 0.9.8 is being used
   ```
   MXMLJSC
   +royalelib=c:\apache-royale-0.9.8-bin-js\royale-asjs\frameworks
   --debug=true
   --source-path+=trunk/src/main/royale
   --output=bin-debug/royale.swf
   --default-frame-rate=60
   --default-background-color=#FFFFFF
   --default-size
   800
   600
   --target-player=11.0
   --show-unused-type-selector-warnings=true
   --verbose-stacktraces=false
   --accessible=false
   --strict=true
   --benchmark=false
   --static-link-runtime-shared-libraries=false
   --use-network=true
   --use-resource-bundle-metadata=true
   --warnings=true
   --optimize=false
   +configname=flex
   --
   trunk/src/main/royale/royale.mxml
   The project 'royale' has been successfully compiled.
   7.9637383 seconds
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to