FWIW, the simplest way to resolve these dependencies is to delay static
instantiations until all classes are loaded.
So, we add a new file loaded after all others (i.e. `static_inst.js`) with the
following for the test case:
````
/**
* @private
*/
Main._myStaticClass = new StaticClass();
/**
* @export
* @type {AnotherStaticClass}
*/
StaticClass.another = new AnotherStaticClass();
````
Done like this, all statics would be be removed from the main class file (and
possibly just declared) and order should not matter.
The only case that I can think of which might cause issues is dependencies on
static instantiations within constructors.
[ Full content available at: https://github.com/apache/royale-asjs/issues/297 ]
This message was relayed via gitbox.apache.org for [email protected]