blob: 8a10e4c11cdce14b3288b3ee0e1ccabf9664873e [file] [log] [blame]
// @dart = 2.9
class C {
int value = 0;
}
extension Extension1 on C {
C operator -(int val) => this;
C operator [](int index) => this..value += index + 1;
void operator []=(int index, C other) =>
this.value += other.value + index + 1;
}
main() {}