summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/webtbs/tw3433.pp
blob: f7d03a61299fe300d397fa60ad0cd5aeb799967f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ Source provided for Free Pascal Bug Report 3433 }
{ Submitted by "Mattias Gaertner" on  2004-12-06 }
{ e-mail: mattias@freepascal.org }
program CompareFunctionTypes;

{$mode objfpc}{$H+}

uses
  Classes, SysUtils;

type
  TMyFunction = function(Item: Pointer): integer of object;

procedure DoSomething(const Func1, Func2: TMyFunction);
begin
  if Func1=Func2 then exit;
end;

begin
  DoSomething(nil,nil);
end.