be1a2af7cb
The resolution of the redirecting factories should happen after the type inference because the inference needs the original, unresolved, representation of the program. Some areas of the CFE attempt to finish the delayed computations, including the resolution of the redirecing factories, before the inference phase. An example of such area is the enum member generation. It has to happen early for proper scope construction. At this stage we know that we can delay the resolution of the redirecting factory invocations becuause it will be attempted a second time later, after the inference is done. Closes https://github.com/dart-lang/sdk/issues/49429 Change-Id: I65c1f903ce2783580785cd1ad61291c28a924937 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/252943 Commit-Queue: Chloe Stefantsova <cstefantsova@google.com> Reviewed-by: Johnni Winther <johnniwinther@google.com>