blob: 9a9e4097d0720b1bc0be5686b5a22fe93fb336dd [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 The reserved words true and false denote objects that represent
* the boolean values true and false respectively. They are the boolean
* literals.
* booleanLiteral:
* true |
* false
* ;
* @description Checks that "true" is a reserved word (so it can't be used to
* name a variable).
* @compile-error
* @author msyabro
*/
main() {
try {
var true;
} catch (e) {}
}