Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Unified Diff: tests/lib/mirrors/function_type_mirror_test.dart

Issue 24005002: Make TypedefMirror a direct descendant of TypeMirror. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tests/lib/mirrors/function_type_mirror_test.dart
diff --git a/tests/lib/mirrors/function_type_mirror_test.dart b/tests/lib/mirrors/function_type_mirror_test.dart
index 4376c83cf44240e139475be5c6c5cd4dcf31a7d1..132485a00801947330973ddc61d95bc3f491426a 100644
--- a/tests/lib/mirrors/function_type_mirror_test.dart
+++ b/tests/lib/mirrors/function_type_mirror_test.dart
@@ -11,7 +11,7 @@ typedef void FooFunction(int a, double b);
bar(int a) {}
main() {
- TypedefMirror tm = reflectClass(FooFunction);
+ TypedefMirror tm = reflectType(FooFunction);
FunctionTypeMirror ftm = tm.referent;
Expect.equals(const Symbol("void"), ftm.returnType.simpleName);
Expect.equals(const Symbol("int"), ftm.parameters[0].type.simpleName);

Powered by Google App Engine
This is Rietveld 408576698