Index: tests/lib/mirrors/generics_substitution_test.dart |
diff --git a/tests/lib/mirrors/generics_substitution_test.dart b/tests/lib/mirrors/generics_substitution_test.dart |
index 1d0e9247a817257a44f65380d2e4766efb288ee7..58a0269b2ee2ee290f0001cac951a6489040b26f 100644 |
--- a/tests/lib/mirrors/generics_substitution_test.dart |
+++ b/tests/lib/mirrors/generics_substitution_test.dart |
@@ -29,9 +29,12 @@ main() { |
Expect.isFalse(superOfTAndInt.isOriginalDeclaration); |
Expect.isFalse(superOfStringAndInt.isOriginalDeclaration); |
- Symbol r(ClassMirror cm) => cm.variables[#r].type.simpleName; |
- Symbol s(ClassMirror cm) => cm.methods[#s].parameters[0].type.simpleName; |
- Symbol t(ClassMirror cm) => cm.methods[#t].returnType.simpleName; |
+ Symbol r(ClassMirror cm) => |
+ (cm.declarations[#r] as VariableMirror).type.simpleName; |
+ Symbol s(ClassMirror cm) => |
+ (cm.declarations[#s] as MethodMirror).parameters[0].type.simpleName; |
+ Symbol t(ClassMirror cm) => |
+ (cm.declarations[#t] as MethodMirror).returnType.simpleName; |
Expect.equals(#T, r(genericDecl.superclass)); /// 01: ok |
Expect.equals(#int, s(genericDecl.superclass)); |