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

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

Issue 27525007: Remove conflict between type parameter and method/field from typevariable_mirror_metadata_test. Rem… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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 | « tests/lib/lib.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/mirrors/typevariable_mirror_metadata_test.dart
diff --git a/tests/lib/mirrors/typevariable_mirror_metadata_test.dart b/tests/lib/mirrors/typevariable_mirror_metadata_test.dart
index aa59870a9ba375c9cff5dfc880ef086b712e5e87..4f86b6d4796005e7f7c0d09912b49663ad53ad3f 100644
--- a/tests/lib/mirrors/typevariable_mirror_metadata_test.dart
+++ b/tests/lib/mirrors/typevariable_mirror_metadata_test.dart
@@ -12,20 +12,9 @@ const m1 = 'm1';
const m2 = #m2;
const m3 = 3;
-class A <S, @m1 @m2 T> {
- // TODO(13327): Remove this once the name collision is prohibited by the
- // compiler/runtime.
- @m3
- T() => null;
-}
+class A <S, @m1 @m2 T> {}
-class B <@m3 T> {
- // TODO(13327): Remove this once the name collision is prohibited by the
- // compiler/runtime.
- @m1
- @m2
- var T;
-}
+class B <@m3 T> {}
typedef bool Predicate<@m1 @m2 G>(G a);
@@ -34,13 +23,9 @@ main() {
cm = reflectClass(A);
checkMetadata(cm.typeVariables[0], []);
checkMetadata(cm.typeVariables[1], [m1, m2]);
- // Check for conflicts.
- checkMetadata(cm.methods[#T], [m3]);
cm = reflectClass(B);
checkMetadata(cm.typeVariables[0], [m3]);
- // Check for conflicts.
- checkMetadata(cm.members[#T], [m1, m2]);
TypedefMirror tm = reflectClass(Predicate);
FunctionTypeMirror ftm = tm.referent;
« no previous file with comments | « tests/lib/lib.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698