::`-> and ::`[] only works in the local program.
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=3198
Reported by Martin Nilsson, IDA nilsson@pike.ida.liu.se
The following test program prints out "1 0", but it should be "1 1".
class A {
mixed `->(string index) {
return ::`->(index);
}
constant a=1;
}
class B {
inherit A;
constant b=1;
}
B x=B();
write("%O %O\n", x->a, x->b);