blob: 00e8d0973b9cc86c9061128ba1f89bd2f813bcd4 [file] [log] [blame]
part of Expect;
typedef F<X> = void Function<Y extends X>();
typedef expected_target=Function<X>();
// Functions for correct type comparison in language feature tests
F<X>? toF<X>(X x) => null;
Type typeOf<X>() => X;
// Function to check nnbd_top_merge feature
class CHECK_TOP_MERGE<T> {
T Function(T) get f => (x) => x;
}