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: client/html/release/htmlimpl.dart

Issue 8856004: frog: better errors/warnigns about type annotations in map literals. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: '' Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
Download patch
« no previous file with comments | « no previous file | client/html/src/EventTargetWrappingImplementation.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/html/release/htmlimpl.dart
diff --git a/client/html/release/htmlimpl.dart b/client/html/release/htmlimpl.dart
index 6d1421a2900dbd2d264008f966293b1aaee57de1..416ea55bdee3236ef626125f6ca02d30261b0c74 100644
--- a/client/html/release/htmlimpl.dart
+++ b/client/html/release/htmlimpl.dart
@@ -23397,9 +23397,9 @@ class EventsImplementation implements Events {
Map<String, EventListenerList> _listenerMap;
EventsImplementation._wrap(this._ptr) {
- // TODO(sigmund): uncomment type annotation (bug 221), currently dartc and
- // frog interpret it differently.
- _listenerMap = /*<EventListenerList>*/{};
+ // TODO(sigmund): the key type (String) yields a warning in frog and the vm,
+ // but it is currently necessary to compile with dartc.
+ _listenerMap = <String, EventListenerList>{};
}
EventListenerList operator [](String type) {
« no previous file with comments | « no previous file | client/html/src/EventTargetWrappingImplementation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698