blob: 3dec874b6e919a2329ec6a2c1a43e8441f5ac642 [file] [log] [blame]
// @dart = 2.9
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() {}