tw2752.pp 337 B

123456789101112131415161718192021222324252627
  1. { %fail }
  2. { %opt=-Sew -vw }
  3. { Source provided for Free Pascal Bug Report 2752 }
  4. { Submitted by "Micha" on 2003-10-26 }
  5. { e-mail: }
  6. program Construct;
  7. {$mode delphi}
  8. type
  9. tb = class
  10. public
  11. constructor Create(a: tobject);
  12. end;
  13. constructor tb.create(a: tobject);
  14. begin
  15. end;
  16. var
  17. b,c: tb;
  18. begin
  19. b := tb.create(b);
  20. end.