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

Unified Diff: client/html/src/EventTargetWrappingImplementation.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:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/html/release/htmlimpl.dart ('k') | frog/minfrog » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/html/src/EventTargetWrappingImplementation.dart
diff --git a/client/html/src/EventTargetWrappingImplementation.dart b/client/html/src/EventTargetWrappingImplementation.dart
index d85eaed0064fc097af9ad9bc6168f94377e26402..573873a0d69d0bb898fb9f9d0acfbab21cebcc6a 100644
--- a/client/html/src/EventTargetWrappingImplementation.dart
+++ b/client/html/src/EventTargetWrappingImplementation.dart
@@ -9,9 +9,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 | « client/html/release/htmlimpl.dart ('k') | frog/minfrog » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698