blob: fccb4e7b3c24125cab938e7bb578b11e32623b69 [file] [log] [blame]
import 'dart:async';
class C<T> {
C(this.field1, this.field2);
G<T> field1;
H<T> field2;
}
main() {}
test1(C<num> c) {}
test2(C<num?> c) {}
test3<S extends num?>(S s) => s + 1;
typedef G<T> = dynamic Function<S extends T>(S);
typedef H<T> = dynamic Function<S extends FutureOr<T>>(S, FutureOr<T>);