| Index: dart/lib/compiler/implementation/scanner/listener.dart
|
| diff --git a/dart/lib/compiler/implementation/scanner/listener.dart b/dart/lib/compiler/implementation/scanner/listener.dart
|
| index ed75f5d1b500db58e87dc3d8c576186f07ce5d81..b2fe6befd1a7fb79bdca923c289bfc52aeab9c1f 100644
|
| --- a/dart/lib/compiler/implementation/scanner/listener.dart
|
| +++ b/dart/lib/compiler/implementation/scanner/listener.dart
|
| @@ -1312,15 +1312,8 @@ class NodeListener extends ElementListener {
|
| Token endToken) {
|
| NodeList elements = makeNodeList(count, beginToken, endToken, ',');
|
| NodeList typeArguments = popNode();
|
| - TypeAnnotation type = null;
|
| - if (typeArguments !== null) {
|
| - if (typeArguments.length() != 1) {
|
| - error('Type annotations for list literal should have a single type',
|
| - constKeyword.next);
|
| - }
|
| - type = typeArguments.iterator().next();
|
| - }
|
| - pushNode(new LiteralList(type, elements, constKeyword));
|
| + // TODO(ahe): Type arguments are discarded.
|
| + pushNode(new LiteralList(null, elements, constKeyword));
|
| }
|
|
|
| void handleIndexedExpression(Token openSquareBracket,
|
|
|