6853db8e77
In preparation for supporting inference of non-nullability from local boolean variables, we need to change a small amount of code to avoid test breakages. Bug: https://github.com/dart-lang/language/issues/1274 Change-Id: Ia49e37f9ba2cd94967c7e1d411a3269593c0eeb9 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/176501 Commit-Queue: Paul Berry <paulberry@google.com> Reviewed-by: Johnni Winther <johnniwinther@google.com>
14 lines
337 B
Dart
14 lines
337 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.
|
|
|
|
main() async {
|
|
bool b = (() => true)();
|
|
(_) {
|
|
if (b) return 42;
|
|
};
|
|
(_) async {
|
|
if (b) return 42;
|
|
};
|
|
}
|