| Index: third_party/pkg/angular/test/core/registry_spec.dart
|
| diff --git a/third_party/pkg/angular/test/core/registry_spec.dart b/third_party/pkg/angular/test/core/registry_spec.dart
|
| index acfd433977c90e49b5ba1091e7f5180ec10e5a7d..532dbf1aeaa4e53f1bdbf8aa72919e0ae472d99f 100644
|
| --- a/third_party/pkg/angular/test/core/registry_spec.dart
|
| +++ b/third_party/pkg/angular/test/core/registry_spec.dart
|
| @@ -30,8 +30,20 @@ main() => describe('RegistryMap', () {
|
| expect(keys).toEqual([new MyAnnotation('A'), new MyAnnotation('B')]);
|
| expect(types).toEqual([A1, A1]);
|
| });
|
| +
|
| + it('should safely ignore typedefs', () {
|
| + var module = new Module()
|
| + ..type(MyMap)
|
| + ..type(MetadataExtractor)
|
| + ..value(MyTypedef, (String _) => null);
|
| +
|
| + var injector = new DynamicInjector(modules: [module]);
|
| + expect(() => injector.get(MyMap), isNot(throws));
|
| + });
|
| });
|
|
|
| +typedef void MyTypedef(String arg);
|
| +
|
| class MyMap extends AnnotationMap<MyAnnotation> {
|
| MyMap(Injector injector, MetadataExtractor metadataExtractor)
|
| : super(injector, metadataExtractor);
|
|
|