blob: b57ee880fb7acc4b38b9ce69728f1a6dd867f07b [file] [log] [blame]
// Copyright (c) 2015, 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.
// @dart = 2.9
// Test that `enum` is considered a keyword and therefore invalid as the name of
// declarations.
main() {
var enum;
// ^^^^
// [cfe] 'enum' can't be used as an identifier because it's a keyword.