blob: 23d225f6e68f6077a0634c5616228cb7dd91e3c8 [file] [log] [blame]
import 'dart:async';
exhaustiveNonNullableFutureOr1(FutureOr<int>? o) => switch (o) {
FutureOr<int>() as FutureOr<int> => 0,
};
exhaustiveNonNullableFutureOr2(FutureOr<int?> o) => switch (o) {
FutureOr<int>() as FutureOr<int> => 0,
};
exhaustiveNonNullableFutureOrTypeVariable1<T extends Object>(FutureOr<T>? o) =>
switch (o) {
FutureOr<T>() as FutureOr<T> => 0,
};
exhaustiveNonNullableFutureOrTypeVariable2<T extends Object>(FutureOr<T?> o) =>
switch (o) {
FutureOr<T>() as FutureOr<T> => 0,
};
exhaustiveNonNullableSuperType(int? o) => switch (o) {
int() as num => 0,
};
exhaustiveNonNullableType(int? o) => switch (o) {
int() as int => 0,
};
exhaustiveNonNullableTypeVariable<T extends Object>(int? o) => switch (o) {
int() as T => 0,
};
expect(expected, actual) {}
final bool inWeakMode = const <Null>[] is List<Object>;
main() {}
throws(dynamic Function() f) {}
throwsOr(expectedIfWeak, dynamic Function() f) {}