blob: 040ab6d2506c201c5cafcd503b276fd739224dd3 [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 async may not be assigned to Future.
///
/// @description Check that it is no compile time error, if the declared
/// return type of asynchronous function may not be assigned to Future but is
/// void.
/// @author a.semenov@unipro.ru
void h() async {
return null;
}
main() {
h();
}