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

Unified Diff: tests/language_2/bound_closure_equality_test.dart

Issue 2985243002: Migrate block 44. (Closed)
Patch Set: Created 3 years, 5 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/language_2/bound_closure_equality_test.dart
diff --git a/tests/language/bound_closure_equality_test.dart b/tests/language_2/bound_closure_equality_test.dart
similarity index 92%
rename from tests/language/bound_closure_equality_test.dart
rename to tests/language_2/bound_closure_equality_test.dart
index e68c4b00cdca26a01fd7de7ce9048e80ffeaf1c2..6ed96dbd212aff80c65aca5f58beb1a2f9c80319 100644
--- a/tests/language/bound_closure_equality_test.dart
+++ b/tests/language_2/bound_closure_equality_test.dart
@@ -15,7 +15,7 @@ class B {
main() {
// Use an array to defeat type inferencing.
- var array = [new A(), new A(), new B(), new B()];
+ var array = <dynamic>[new A(), new A(), new B(), new B()];
var set = new Set.from(array.map((a) => a.foo));
Expect.equals(array.length, set.length);
set.addAll(array.map((a) => a.foo));
@@ -33,7 +33,7 @@ main() {
}
// Try with dart2js intercepted types.
- array = ['foo', 'bar', [], [], const []];
+ array = <dynamic>['foo', 'bar', [], [], const []];
set = new Set.from(array.map((a) => a.indexOf));
Expect.equals(array.length, set.length);
set.addAll(array.map((a) => a.indexOf));
@@ -50,7 +50,7 @@ main() {
}
}
- array = [const A(), const A()];
+ array = <dynamic>[const A(), const A()];
set = new Set.from(array.map((a) => a.foo));
Expect.equals(1, set.length);
set.addAll(array.map((a) => a.foo));
@@ -62,7 +62,7 @@ main() {
Expect.equals(array[0].foo, array[1].foo);
Expect.equals(array[0].foo.hashCode, array[1].foo.hashCode);
- array = [const [], const []];
+ array = <dynamic>[const [], const []];
set = new Set.from(array.map((a) => a.indexOf));
Expect.equals(1, set.length);
set.addAll(array.map((a) => a.indexOf));

Powered by Google App Engine
This is Rietveld 408576698