blob: 314e7328ab91aa983c8f2b598ac27fa795081669 [file] [log] [blame] [edit]
// 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.
// Test that it is not an error to await an expression of type `void`.
import "dart:async";
void v;
List<void> vs = [null];
FutureOr<void> fov;
void main() async {
await print('');
await v;
await vs[0];
var v2 = vs[0];
await v2;
await fov;
}