Index: tests/lib/mirrors/reflect_uninstantiated_class_test.dart |
diff --git a/tests/lib/mirrors/reflect_uninstantiated_class_test.dart b/tests/lib/mirrors/reflect_uninstantiated_class_test.dart |
index 15479b57beb51d54e418cf26ac6f2785abcb5f82..1a2b8e964474924df5f7baa61003ab1eae416106 100644 |
--- a/tests/lib/mirrors/reflect_uninstantiated_class_test.dart |
+++ b/tests/lib/mirrors/reflect_uninstantiated_class_test.dart |
@@ -20,5 +20,6 @@ main() { |
print(field); |
} |
-Iterable<VariableMirror> publicFields(ClassMirror mirror) => |
- mirror.variables.values.where((x) => !(x.isPrivate || x.isStatic)); |
+publicFields(ClassMirror mirror) => |
+ mirror.declarations.values.where( |
+ (x) => x is VariableMirror && !(x.isPrivate || x.isStatic)); |