Index: tests/lib/mirrors/reflect_runtime_type_test.dart |
diff --git a/tests/lib/mirrors/reflect_runtime_type_test.dart b/tests/lib/mirrors/reflect_runtime_type_test.dart |
index c766c2d2f2a5a17994e4135502f3b29d8ab781fb..dbc225a5518de5b073533116dadb98cd70319262 100644 |
--- a/tests/lib/mirrors/reflect_runtime_type_test.dart |
+++ b/tests/lib/mirrors/reflect_runtime_type_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)); |