mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-09 19:08:15 +02:00
* new bug
This commit is contained in:
parent
9c507c2da0
commit
ae6e6aa136
29
tests/webtbs/tw2483.pp
Normal file
29
tests/webtbs/tw2483.pp
Normal file
@ -0,0 +1,29 @@
|
||||
{$ifdef fpc}{$mode delphi}{$endif}
|
||||
|
||||
type
|
||||
TUpdateProc = procedure( Self : TObject; n : Integer ) of object;
|
||||
|
||||
TCl = class
|
||||
FOnUpdate : TUpdateProc;
|
||||
procedure HandleUpdate(obj:tobject;n:integer);
|
||||
procedure p;
|
||||
end;
|
||||
|
||||
procedure tcl.HandleUpdate(obj:tobject;n:integer);
|
||||
begin
|
||||
writeln(n);
|
||||
end;
|
||||
|
||||
procedure tcl.p;
|
||||
begin
|
||||
FOnUpdate := HandleUpdate;
|
||||
FOnUpdate( Self, 1 );
|
||||
end;
|
||||
|
||||
|
||||
var
|
||||
c : TCl;
|
||||
begin
|
||||
c:=TCl.create;
|
||||
c.p;
|
||||
end.
|
Loading…
Reference in New Issue
Block a user