blob: 976eb43257759ce791fcec3304e93618e73ff6eb [file] [log] [blame]
library test;
class Index {}
class A {}
class B extends A {
B operator +(C v) => throw '';
B operator -(int i) => throw '';
B operator *(B v) => throw '';
C operator &(A v) => throw '';
}
class C extends B {}
T f<T>() => throw '';
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() {}