blob: 046aa7eeb6a8f7fdaab9545e38a1da128ac2c663 [file] [edit]
// Copyright (c) 2026, 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.
// Regression test for https://github.com/dart-lang/sdk/issues/64130.
import 'package:expect/expect.dart';
Future<String?> getNull() async => null;
Future<bool> testAnd() async =>
(await getNull()) != null && await Future<bool>.value(true);
Future<bool> testOr() async =>
(await getNull()) == null || await Future<bool>.value(false);
void main() async {
Expect.isFalse(await testAnd());
Expect.isTrue(await testOr());
}