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
{{ message }}
This repository has been archived by the owner on Dec 6, 2017. It is now read-only.
classParentDynamicallyInstantiatingChild {
ParentDynamicallyInstantiatingChild(Injector injector) {
injector.get(ChildDependingOnParent);
}
}
classChildDependingOnParent {
ChildDependingOnParent(ParentDynamicallyInstantiatingChild _);
}
it('should be able through injector instantiate a class that depends on the class being instantiated', () {
var injector =newInjector();
expect(() {
injector.get(ParentDynamicallyInstantiatingChild);
}, not(throwsA(anything)));
});
I think I want to withdraw this one... it is a circular dependency, instantiation of ParentDynamicallyInstantiatingChild is not complete at that point.
throws
Cannot resolve a circular dependency! (resolving ParentDynamicallyInstantiatingChild -> ChildDependingOnParent -> ParentDynamicallyInstantiatingChild)
The text was updated successfully, but these errors were encountered: