Index: tests/lib/mirrors/generics_test.dart |
diff --git a/tests/lib/mirrors/generics_test.dart b/tests/lib/mirrors/generics_test.dart |
index ec2d49a38946ad990dda14d9fe0656d8a3835f8a..085dc37d233e8238423d5c5c86b9082fd351bcf7 100644 |
--- a/tests/lib/mirrors/generics_test.dart |
+++ b/tests/lib/mirrors/generics_test.dart |
@@ -145,11 +145,10 @@ main() { |
// Library members are all uninstantaited generics or non-generics. |
currentMirrorSystem().libraries.values.forEach((libraryMirror) { |
- libraryMirror.classes.values.forEach((classMirror) { |
- // Generic typedefs are considered in a separate test. |
- if (classMirror is! TypedefMirror) { |
- Expect.isTrue(classMirror.isOriginalDeclaration); |
- Expect.equals(classMirror, classMirror.originalDeclaration); |
+ libraryMirror.declarations.values.forEach((declaration) { |
+ if (declaration is ClassMirror) { |
+ Expect.isTrue(declaration.isOriginalDeclaration); |
+ Expect.equals(declaration, declaration.originalDeclaration); |
} |
}); |
}); |