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

Unified Diff: test/generated_sdk/lib/collection/hash_map.dart

Issue 1122313002: Typing fixes to eliminate casts/dcalls (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Rebase Created 5 years, 7 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 | « test/generated_sdk/lib/collection/collection.dart ('k') | test/generated_sdk/lib/collection/hash_set.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/generated_sdk/lib/collection/hash_map.dart
diff --git a/test/generated_sdk/lib/collection/hash_map.dart b/test/generated_sdk/lib/collection/hash_map.dart
index 5ee7926124ca4952040f83261832ab991f2980d3..0f98975e17c97872d18ac63b1160cb3184565f42 100644
--- a/test/generated_sdk/lib/collection/hash_map.dart
+++ b/test/generated_sdk/lib/collection/hash_map.dart
@@ -5,9 +5,9 @@
part of dart.collection;
/** Default function for equality comparison in customized HashMaps */
-bool _defaultEquals(a, b) => a == b;
+bool _defaultEquals(Object a, Object b) => a == b;
/** Default function for hash-code computation in customized HashMaps */
-int _defaultHashCode(a) => a.hashCode;
+int _defaultHashCode(Object a) => a.hashCode;
/** Type of custom equality function */
typedef bool _Equality<K>(K a, K b);
@@ -68,7 +68,7 @@ abstract class HashMap<K, V> implements Map<K, V> {
*/
factory HashMap({ bool equals(K key1, K key2),
int hashCode(K key),
- bool isValidKey(potentialKey) }) {
+ bool isValidKey(Object potentialKey) }) {
if (isValidKey == null) {
if (hashCode == null) {
if (equals == null) {
« no previous file with comments | « test/generated_sdk/lib/collection/collection.dart ('k') | test/generated_sdk/lib/collection/hash_set.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698