blob: 935983bb29d8874a3af95df496ae3fa28d89ca6e [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 The yield statement adds an element to the result of a generator
/// function.
/// yieldStatement:
/// yield expression ‘;’
/// ;
///
/// @description Check that it is compile error if ';' is missing
/// in yield statement in asynchronous generator function
///
/// @author a.semenov@unipro.ru
import 'dart:async';
Stream<int> test() async* {
yield 1
// ^
// [analyzer] unspecified
// [cfe] unspecified
}
main() {
test();
}