tw8150b.pp 353 B

1234567891011121314151617181920212223242526272829303132
  1. { %fail }
  2. { %norun }
  3. {$ifdef fpc}
  4. {$mode delphi}
  5. {$endif}
  6. type
  7. tc = class
  8. class procedure classmethod;
  9. procedure method;
  10. a : longint;
  11. property x: longint read a;
  12. end;
  13. ttc = class of tc;
  14. class procedure tc.classmethod;
  15. begin
  16. end;
  17. procedure tc.method;
  18. begin
  19. end;
  20. var
  21. c: ttc;
  22. begin
  23. c := tc;
  24. with c do
  25. writeln(x);
  26. end.