blob: b9e3599ac378caf1630e714d16b8a035f421e516 [file] [log] [blame]
library test;
T f<T>() => throw '';
class A {}
class B extends A {
B operator *(B v) => throw '';
B operator +(C v) => throw '';
B operator -(int i) => throw '';
C operator &(A v) => throw '';
}
class C extends B {}
class Index {}
class Test {
B operator [](Index i) => throw '';
void operator []=(Index i, B v) {}
void test() {}
}
class Test2 {
B? operator [](Index i) => throw '';
void operator []=(Index i, B? v) {}
}
main() {}