blob: 0e625dfa347e6c68a4d354fa3221824897b7aef9 [file] [log] [blame]
// Copyright (c) 2018, 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 error when the type of the stream expression in an
/// asynchronous await for-in element may not be assigned to Stream<T> for some
/// type T
///
/// @description Checks that it is a static error when the type of the stream
/// expression in an asynchronous await for-in element may not be assigned to
/// Stream<T> for some type T
/// @author sgrekhov@unipro.ru
main() async {
[await for (var i in "not stream") i];
// ^
// [analyzer] unspecified
// [cfe] unspecified
}