blob: b26a17f04e869102b39a8f056f59e0e305ea881a [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.
/// @assertion Compile-time errors are errors that preclude execution.
/// A compile-time error must be reported by a Dart compiler before the
/// erroneous code is executed.
/// @description Checks that erroneous code is not executed if there is
/// a compile-time error. Test error in braced code block
/// @author
import '../../Utils/expect.dart';
main() {
if (true) {
var a = ;
// ^
// [analyzer] unspecified
// [cfe] unspecified
}"Erroneous code must not be executed");