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

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

Issue 23890036: Change return type of get typeVariables and typeArguments in ClassMirror. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed comments. 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
« no previous file with comments | « sdk/lib/mirrors/mirrors.dart ('k') | tests/lib/mirrors/generics_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/mirrors/class_mirror_type_variables_test.dart
diff --git a/tests/lib/mirrors/class_mirror_type_variables_test.dart b/tests/lib/mirrors/class_mirror_type_variables_test.dart
index 2b02bad6104afc8ff336da95433930c3fd63ff55..c4149e4fb02b0a5c29b34700e1e304fc4aef781b 100644
--- a/tests/lib/mirrors/class_mirror_type_variables_test.dart
+++ b/tests/lib/mirrors/class_mirror_type_variables_test.dart
@@ -7,9 +7,9 @@ import "dart:mirrors";
import "package:expect/expect.dart";
class C<R,S,T> {
- R foo(R r) => r;
- S bar(S s) => s;
- T baz(T t) => t;
+ R foo(R r) => r;
+ S bar(S s) => s;
+ T baz(T t) => t;
}
class NoTypeParams {}
@@ -18,10 +18,7 @@ main() {
ClassMirror cm;
cm = reflectClass(C);
Expect.equals(3, cm.typeVariables.length);
- Expect.equals(true, cm.typeVariables.containsKey(const Symbol("R")));
- Expect.equals(true, cm.typeVariables.containsKey(const Symbol("S")));
- Expect.equals(true, cm.typeVariables.containsKey(const Symbol("T")));
- var values = cm.typeVariables.values;
+ var values = cm.typeVariables;
values.forEach((e) {
Expect.equals(true, e is TypeVariableMirror);
});
« no previous file with comments | « sdk/lib/mirrors/mirrors.dart ('k') | tests/lib/mirrors/generics_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698