Chromium Code Reviews
Descriptiondart2js: accept const map literals as expression statements.
Dart2js was broken for:
<String, int> {};
The reason was that we tried to find an identifier after an initial type (looking for something like `Set<int> foo`) to parse a declaration. We assumed that the first token would be a type name and skipped the `<` when we did this search, thus believing that there was a declaration.
BUG= http://dartbug.com/12793
BUG= http://dartbug.com/12794
BUG= http://dartbug.com/21155
R=ahe@google.com
Committed: https://code.google.com/p/dart/source/detail?r=42356
Patch Set 1 #
Total comments: 2
Patch Set 2 : Address comment. #
Messages
Total messages: 6 (1 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||