mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-05 19:16:17 +02:00
34 lines
397 B
ObjectPascal
34 lines
397 B
ObjectPascal
unit publishedmethods1;
|
|
|
|
{$mode objfpc}{$H+}
|
|
|
|
interface
|
|
|
|
uses
|
|
Classes, SysUtils, PublishedMethods2;
|
|
|
|
type
|
|
TMyMethodWithAnInteger = procedure (x:T) of object;
|
|
T = char;
|
|
TMyMethodWithAnChar = procedure (x:T) of object;
|
|
|
|
{ TMyClass }
|
|
{$M+}
|
|
TMyClass = class
|
|
published
|
|
procedure F(x: T);
|
|
end;
|
|
{$M-}
|
|
|
|
implementation
|
|
|
|
{ TMyClass }
|
|
|
|
procedure TMyClass.F(x: T);
|
|
begin
|
|
|
|
end;
|
|
|
|
end.
|
|
|