blob: 00281b660eb1266e96145f29454070f8c410c10d [file] [log] [blame]
library test;
class B<T> {
B<T> operator +(B<T> other) => throw '';
}
class C<T> {
B<F<T>> operator [](int i) => throw '';
void operator []=(int i, B<F<T>> x) {}
}
class C2<T> {
B<F<T>>? operator [](int i) => throw '';
void operator []=(int i, B<F<T>>? x) {}
}
main() {}
typedef void F<T>(T x);
void test(C<num> c, C2<num> c2) {}