This code doesn't work as I would expect. B()->x has only the type function(int:int). Is the intention that overloading one of the variants invalidates the others?
class A { int x(int i) { return i; } variant int x() { return x(3); } }
class B { inherit A; int x(int i) { return i+1; } }
pike-devel@lists.lysator.liu.se