blob: e83da8e70ad3e3d35518d3c8ee817b426f987170 [file] [log] [blame]
class C<X> {
C.foo() {}
factory C() => new C.foo();
factory C.bar() = C;
}
class D<X> {
D();
factory D.bar() = D;
factory D.foo() => new D();
}
main() {}
test() {}
typedef A<X extends G<C<X>>> = C<X>;
typedef B<X extends G<D<X>>> = D<X>;
typedef G<X> = X Function(X);