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
[cfe] Handle redirecting factories in top level inference.
Previously top level inference was triggered before inference of redirecting factories. This only supported dependencies like:
redirecting factory -> field
A user encountered a crash when a field type depended on a redirecting factory, resulting in the opposite dependency:
field -> redirecting factory
Redirecting factories are now included in the top level inference, similar to how generative constructors where already handled, by introducing an InferableMember interface. Tests are added that exercises this dependency as well as:
field -> redirecting factory -> field
Change-Id: I0bff1012990d536fbf44e84d6f4d6b26566043a2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/415862
Commit-Queue: Johnni Winther <[email protected]>
Reviewed-by: Jens Johansen <[email protected]>
0 commit comments