blob: 9a51abc7b3c8605a64c296a6764dc9b320cdd3b4 [file] [log] [blame]
library test;
typedef void F<T>(T x);
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) {}
}
void test(C<num> c, C2<num> c2) {}
main() {}