mirror of
https://github.com/dart-lang/sdk
synced 2024-09-19 15:01:29 +00:00
31 lines
474 B
Plaintext
31 lines
474 B
Plaintext
|
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) {}
|
||
|
void test() {}
|
||
|
}
|
||
|
|
||
|
main() {}
|