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

Unified Diff: sdk/lib/core/uri.dart

Issue 14246008: Allow Object when doing lookups. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Forgot to upload before committing Created 7 years, 6 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/core/set.dart ('k') | sdk/lib/html/dart2js/html_dart2js.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/core/uri.dart
diff --git a/sdk/lib/core/uri.dart b/sdk/lib/core/uri.dart
index ab8d86aa576b554137f85d25dbcc6c77a2c6daf1..0eaee85e1011ae740bb4f8951691c085b9a75a80 100644
--- a/sdk/lib/core/uri.dart
+++ b/sdk/lib/core/uri.dart
@@ -1102,9 +1102,9 @@ class _UnmodifiableMap<K, V> implements Map<K, V> {
final Map _map;
const _UnmodifiableMap(this._map);
- bool containsValue(V value) => _map.containsValue(value);
- bool containsKey(K key) => _map.containsKey(key);
- V operator [](K key) => _map[key];
+ bool containsValue(Object value) => _map.containsValue(value);
+ bool containsKey(Object key) => _map.containsKey(key);
+ V operator [](Object key) => _map[key];
void operator []=(K key, V value) {
throw new UnsupportedError("Cannot modify an unmodifiable map");
}
@@ -1114,7 +1114,7 @@ class _UnmodifiableMap<K, V> implements Map<K, V> {
addAll(Map other) {
throw new UnsupportedError("Cannot modify an unmodifiable map");
}
- V remove(K key) {
+ V remove(Object key) {
throw new UnsupportedError("Cannot modify an unmodifiable map");
}
void clear() {
« no previous file with comments | « sdk/lib/core/set.dart ('k') | sdk/lib/html/dart2js/html_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698