mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
8704574f7e
This commit updates the NgModule logic to account for a case when a type has more than one generated def. This is a common situation for NgModules which have at least two: ɵmod and ɵinj. Previously, the second def was not stored before applying overrides, thus leaving it modified after the test, leaking the state as a result. This fix ensures that we store all defs before applying any overrides. PR Close #46049