library test; | |
class B<T> { | |
B<T> operator +(B<T> other) => throw ''; | |
} | |
class C<T> { | |
B<F<T>>? get x2 => null; | |
B<F<T>> get x => throw ''; | |
void set x(B<F<T>> value) {} | |
void set x2(B<F<T>>? value) {} | |
} | |
main() {} | |
typedef void F<T>(T x); | |
void test(C<num> c) {} |