summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/webtbf/tw2878.pp
blob: 6662dec9e42d2bb2b386561a5c69ac4f6c27ee0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ %fail }
{ Source provided for Free Pascal Bug Report 2878 }
{ Submitted by "Mattias Gaertner" on  2004-01-04 }
{ e-mail: mattias@freepascal.org }
program NoClassCheck;

{$mode objfpc}{$H+}

uses
  Classes;

var
  APersistent: TPersistent;
  AnObject: TObject;
begin
  AnObject:=nil;
  APersistent:=AnObject; // Should need a typecast
end.