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

Unified Diff: tests/corelib_2/hashcode_test.dart

Issue 2990623002: Migrate test block 9 to Dart 2.0 (Closed)
Patch Set: nits 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
« no previous file with comments | « tests/corelib_2/hashcode_boxed_test.dart ('k') | tests/corelib_2/hidden_library2_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib_2/hashcode_test.dart
diff --git a/tests/corelib_strong/hashcode_test.dart b/tests/corelib_2/hashcode_test.dart
similarity index 93%
rename from tests/corelib_strong/hashcode_test.dart
rename to tests/corelib_2/hashcode_test.dart
index ba452759175452ce1e2f16024f82e17e97e0eea7..840df023113d5baf3227cb4822321a8b34bf488e 100644
--- a/tests/corelib_strong/hashcode_test.dart
+++ b/tests/corelib_2/hashcode_test.dart
@@ -11,8 +11,7 @@ class Override {
int foo() => hash; // Just some function that can be closurized.
- bool operator ==(Object other) =>
- other is Override && (other as Override).hash == hash;
+ bool operator ==(Object other) => other is Override && other.hash == hash;
}
int bar() => 42; // Some global function.
« no previous file with comments | « tests/corelib_2/hashcode_boxed_test.dart ('k') | tests/corelib_2/hidden_library2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698