blob: e2b0e9bbd72aefd4bdf3016b46ba6f0d2fd64c1f [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.
import 'dart:async';
/* `return;` is an error if the future value type of the function is not
* `void`, `dynamic`, or `Null`.
*/
Future<int> test1() async {
return;
//^
// [analyzer] unspecified
// [cfe] unspecified
}
Future<int> Function() test2 = () async {
return;
//^
// [analyzer] unspecified
// [cfe] unspecified
};
void main() {
test1();
test2();
}