blob: 9d4c7589de94cc4025f35bbfbd1a0eedea8d056a [file] [log] [blame]
// Copyright (c) 2016, 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 a yield statement appears in
/// a function that is not a generator function.
///
/// @description Check that it is compile error if yield statement appears
/// inside synchronous function.
///
/// @author a.semenov@unipro.ru
main() {
yield 1;
//^
// [analyzer] unspecified
// [cfe] unspecified
}