program fjf639j6;

type
  t = abstract object procedure a end;
  u = abstract object (t) procedure b end;
  pv = ^v; v = object (t) procedure c end;
  pw = ^w; w = object (u) procedure d end;

procedure t.a; begin end;
procedure u.b; begin end;
procedure v.c; begin end;
procedure w.d; begin end;

var
  x: ^t;

begin
  x := New (pw);
  with x^ do
    b  { WRONG }
end.
