blob: 5f6b5a5e3b8745b47e5dfa2420738e778bb56c46 [file] [log] [blame]
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
/**
* @assertion A map literal denotes a map object.
* mapLiteral:
* const? typeArguments? '{' (mapLiteralEntry (',' mapLiteralEntry)* ','?)?
* '}'
* ;
* mapLiteralEntry:
* expression ':' expression
* ;
* A map literal consists of zero or more entries. Each entry has a key and a
* value. Each key and each value is denoted by an expression.
* @description Checks that a map literal can't contain an empty entry.
* @compile-error
* @author msyabro
*/
main() {
<String, int>{"key1": 1, "key2" : 2,,"key3":3};
}