blob: 54d5bc48d42dd8f2bf775d65480259637924d12b [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.
// @dart = 2.9
/// @assertion It is a static warning if the declared return type of a function
/// marked sync* may not be assigned to Iterable. It is a static warning if
/// the declared return type of a function marked async* may not be assigned
/// to Stream.
///
/// @description Check that it is a compile error, if the declared
/// return type of a function marked async* may not be assigned to Stream.
///
/// @author a.semenov@unipro.ru
int f() async* { }
//^
// [analyzer] unspecified
// [cfe] unspecified
main() {
f();
}