821536f7a3
The folder 'general' now tests the same. Two tests unique to general_nnbd_opt_out have been copied over to general. Change-Id: Ibd02dc236cdddff0730fb99bf10504dd16329cab Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/185545 Reviewed-by: Jens Johansen <jensj@google.com>
15 lines
402 B
Dart
15 lines
402 B
Dart
// Copyright (c) 2018, 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.6
|
|
|
|
import 'dart:async';
|
|
|
|
// The test checks that the nullability of FutureOr<null> is `nullable` even in
|
|
// an opted-out library.
|
|
|
|
FutureOr<Null> get foo => null;
|
|
|
|
main() {}
|