fpc/tests/webtbf/tw3218.pp
fpc 790a4fe2d3 * log and id tags removed
git-svn-id: trunk@42 -
2005-05-21 09:42:41 +00:00

25 lines
441 B
ObjectPascal

{ %fail }
{ Source provided for Free Pascal Bug Report 3218 }
{ Submitted by "Vincent Snijders" on 2004-07-20 }
{ e-mail: vslist@zonnet.nl }
{$mode objfpc}
uses
classes;
type TAProc = procedure(const s: string; o: TObject);
var AProc: TAProc;
procedure A(const s: string; c: TComponent);
begin
c.Name := s;
end;
var
o1: TObject;
begin
AProc:=@A; //this line should generate an error
o1 := TObject.Create;
AProc('',o1);
end.