blob: accd280b1615e4ca93b67bba6cf931baea7b9672 [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 It is a compile-time error if an asynchronous for-in statement
/// appears inside a synchronous function. It is a compile-time error if
/// a traditional for loop is prefixed by the await keyword.
///
/// @description Checks that it is a compile-time error if a traditional
/// for loop is prefixed by the await keyword.
///
/// @compile-error
/// @author a.semenov@unipro.ru
main() async {
await for (int i = 0; i < 100; i++) break;
}