blob: 4af8c4e645656b10dc41050abeefbe947caf50c7 [file]
// 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
/// ⟨finalConstVarOrType⟩ ::= late? final ⟨type⟩?
/// | const ⟨type⟩?
/// | late? ⟨varOrType⟩
///
/// ⟨varOrType⟩ ::= var | ⟨type⟩
///
/// ⟨initializedVariableDeclaration⟩ ::=
/// ⟨declaredIdentifier⟩ (‘=’ ⟨expression⟩)? (‘,’ ⟨initializedIdentifier⟩)*
///
/// ⟨initializedIdentifier⟩ ::= ⟨identifier⟩ (‘=’ ⟨expression⟩)?
///
/// ⟨initializedIdentifierList⟩ ::=
/// ⟨initializedIdentifier⟩ (‘,’ ⟨initializedIdentifier⟩)*
///
/// @description Checks that finalConstVarOrType cannot appear twice in
/// variable declaration.
/// @author kaigorodov
main() {
var x, var y;
// ^^^
// [analyzer] unspecified
// [cfe] unspecified
}