blob: 79ac0387b77b00c1f20dd52db810a19cae972fff [file] [log] [blame]
// 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
import "dart:async";
import "package:expect/expect.dart";
// Regression test for https://github.com/dart-lang/sdk/issues/41465
void main() async {
var f = Future<int>.sync(() => null);
Expect.isNull(await f);
}