Index: tests/lib/mirrors/generic_function_typedef_test.dart |
diff --git a/tests/lib/mirrors/generic_function_typedef_test.dart b/tests/lib/mirrors/generic_function_typedef_test.dart |
index 3f6853bdd8d8b151cfc2063d2397e7806744ad94..7f11d2213949f908397510c306903b2a2e84c2ee 100644 |
--- a/tests/lib/mirrors/generic_function_typedef_test.dart |
+++ b/tests/lib/mirrors/generic_function_typedef_test.dart |
@@ -25,10 +25,10 @@ reflectTypeDeclaration(t) => reflectType(t).originalDeclaration; |
main() { |
TypeMirror dynamicMirror = currentMirrorSystem().dynamicType; |
- TypedefMirror predicateOfNum = reflectClass(C).variables[#predicateOfNum].type; |
- TypedefMirror transformOfString = reflectClass(C).variables[#transformOfString].type; |
- TypedefMirror transformOfR = reflectClass(C).variables[#transformOfR].type; |
- TypedefMirror transformOfDouble = reflect(new C<double>()).type.variables[#transformOfR].type; |
+ TypedefMirror predicateOfNum = (reflectClass(C).declarations[#predicateOfNum] as VariableMirror).type; |
+ TypedefMirror transformOfString = (reflectClass(C).declarations[#transformOfString] as VariableMirror).type; |
+ TypedefMirror transformOfR = (reflectClass(C).declarations[#transformOfR] as VariableMirror).type; |
+ TypedefMirror transformOfDouble = (reflect(new C<double>()).type.declarations[#transformOfR] as VariableMirror).type; |
TypeVariableMirror tFromGenericPredicate = reflectTypeDeclaration(GenericPredicate).typeVariables[0]; |
TypeVariableMirror sFromGenericTransform = reflectTypeDeclaration(GenericTransform).typeVariables[0]; |