tw2878.pp 341 B

123456789101112131415161718
  1. { %fail }
  2. { Source provided for Free Pascal Bug Report 2878 }
  3. { Submitted by "Mattias Gaertner" on 2004-01-04 }
  4. { e-mail: [email protected] }
  5. program NoClassCheck;
  6. {$mode objfpc}{$H+}
  7. uses
  8. Classes;
  9. var
  10. APersistent: TPersistent;
  11. AnObject: TObject;
  12. begin
  13. AnObject:=nil;
  14. APersistent:=AnObject; // Should need a typecast
  15. end.