Harbs commented on issue #167:
URL: 
https://github.com/apache/royale-compiler/issues/167#issuecomment-1006901449


   Yeah. This is a known problem.
   
   Currently it's only possible to reliably use native types in static 
initializers. Static initializers are evaluated when the JS file loads. The 
only way to get that to work with the current system is to ensure that the 
dependencies load first. There are cases where it's impossible to resolve that 
because you can have A which references B and B which references A.
   
   One potential solution which I mentioned in the past is to collect all 
non-native static initializers collected and loaded after all the other files. 
I think @aharui might have had a different solution.


-- 
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.

To unsubscribe, e-mail: [email protected]

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


Reply via email to