665c58aa1a
Closes #41602 Change-Id: I29b8880e3fdb769b2acdf2c82a9ced038d7b0d94 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149287 Reviewed-by: Dmitry Stefantsov <dmitryas@google.com> Commit-Queue: Johnni Winther <johnniwinther@google.com>
18 lines
510 B
Dart
18 lines
510 B
Dart
// Copyright (c) 2020, 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.7
|
|
|
|
Future<void> returnFutureOfVoid() async {}
|
|
|
|
void returnVoid() {}
|
|
|
|
void returnVoidAsync() async {}
|
|
|
|
main() async {
|
|
await returnVoid(); // ok since this library is opted out.
|
|
await returnFutureOfVoid(); // ok
|
|
await returnVoidAsync(); // ok since this library is opted out.
|
|
}
|