blob: a695260d67a09cd4212dcaf304e2c9672434ac1d [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.
/// @author
library override_opted_in_lib;
import "dart:async";
class A {}
// Nullable type aliases:
typedef NullableAAlias = A?;
typedef NullableIntAlias = int?;
typedef NullableFunctionAlias = Function?;
typedef NullableObjectAlias = Object?;
typedef DynamicAlias = dynamic;
typedef NullAlias = Null;
typedef FutureOrAlias = FutureOr;
typedef FutureOrFutureOrAlias<T extends FutureOr<FutureOr>> = FutureOr<T>;
// Non-nullable type aliases:
typedef AAlias = A;
typedef IntAlias = int;
typedef ObjectAlias = Object;
typedef FunctionAlias = Function;
typedef FutureOrIntAlias<T extends int> = FutureOr<T>;
// Never aliases:
typedef NeverAlias = Never;