blob: 4bd6f06d938394715838701a9d17e1911fb4ca83 [file] [log] [blame]
// @dart = 2.9
extension Extension<T> on T {
T method1() => this;
}
extension BoundExtension<T extends Class> on T {
T method2() => this;
}
class Class {}
class SubClass extends Class {}
Class test1<T>(T t1) {}
test2<T extends Class>(T t2) {}
test3<T>(T t3) {}
main() {}