You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[1.8>1.9] [MERGE #4551@obastemur] module: support for circular import
Merge pull request #4551 from obastemur:module_circular
Alternative to #4550 , fixes#4482
Saw the test case brought by @rhuanjl to #4482 and the proposed fix at #4550 . After looking at the code, looks like couple of tiny changes are needed to module support.
I don't have much context on modules though. This PR is just a weekend after breakfast hacking. /cc @akroshg@boingoing@rhuanjl
#### how it works
Separate `ModuleDeclarationInstantiation` into `ModuleDeclarationInstantiation` and `GenerateRootFunction`. This way, in case `childrenModuleSet` has circular dependents, we may instantiate all the modules prior to triggering the rest
0 commit comments