Index: tests/lib/mirrors/intercepted_object_test.dart |
=================================================================== |
--- tests/lib/mirrors/intercepted_object_test.dart (revision 41737) |
+++ tests/lib/mirrors/intercepted_object_test.dart (working copy) |
@@ -16,6 +16,11 @@ |
ClassMirror cls = reflect(object).type; |
checkClassMirrorMethods(cls); |
+ // The VM implements List via a mixin, so check for that. |
+ if (cls.superinterfaces.isEmpty && object is List) { |
+ cls = cls.superclass.superclass.mixin; |
Ivan Posva
2014/11/18 07:24:18
This is similar hard coding as was removed in othe
Florian Schneider
2014/11/18 10:20:19
Yes, but it is just a test which can easily be ada
|
+ } |
+ |
List<ClassMirror> superinterfaces = cls.superinterfaces; |
String symName = 's($name)'; |
for (ClassMirror superinterface in superinterfaces) { |