pike.git / src / testsuite.in

version» Context lines:

pike.git/src/testsuite.in:4329:       return a->counter;   ]], 6)      test_any([[    // Since the addition of F_APPEND_ARRAY the setter is not being    // called anymore. Instead, the array _data is modified in place.    class A(array foo) {    int counter;    -  mixed `->=(string sym, mixed v) { +  void `->=(string sym, mixed v) {    counter += !!v; -  return ::`->=(sym, v); +  ::`->=(sym, v);    }    };       object a = A(({}));       for (int i = 0; i < 6; i++) {    a->foo += ({ i });    }       return a->counter;