4292d9cc28
+ use legacy erasure on weak mode const object checking + changes Null to subtype of Never when ignoring nullabilities Closes #43606 Closes #43624 Change-Id: Ief695829c550562ec1bfd0c1145cc33c584a4b8a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/165805 Commit-Queue: Johnni Winther <johnniwinther@google.com> Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
13 lines
600 B
Dart
13 lines
600 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.
|
|
|
|
/// A null safe library of helper methods to construct types and values
|
|
/// containing non-nullable and nullable (question ?) types.
|
|
|
|
typedef fnTypeWithNullableObjectBound = void Function<T extends Object?>();
|
|
typedef fnTypeWithNeverBound = void Function<T extends Never>();
|
|
|
|
void fnWithNonNullObjectBound<T extends Object>() => null;
|
|
void fnWithNullBound<T extends Null>() => null;
|