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