mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-04 09:03:51 +02:00
51 lines
685 B
ObjectPascal
51 lines
685 B
ObjectPascal
unit PublishedMethods1;
|
|
|
|
{$mode objfpc}{$H+}
|
|
|
|
interface
|
|
|
|
uses
|
|
Classes, SysUtils, PublishedMethods2;
|
|
|
|
type
|
|
TPoint = PublishedMethods2.Point;
|
|
TMyMethodWithTPoint = procedure (x: TPoint) of object;
|
|
|
|
function Point: TPoint; // <- it is not TypeDefinition of "Point"
|
|
|
|
type
|
|
TMyMethodWithAnInteger = procedure (x:T) of object;
|
|
T = char;
|
|
TMyMethodWithAnChar = procedure (x:T) of object;
|
|
|
|
{ TMyClass }
|
|
{$M+}
|
|
TMyClass = class
|
|
published
|
|
procedure F(x: T);
|
|
procedure DoPoint(x: TPoint);
|
|
end;
|
|
{$M-}
|
|
|
|
implementation
|
|
|
|
function Point: TPoint;
|
|
begin
|
|
|
|
end;
|
|
|
|
{ TMyClass }
|
|
|
|
procedure TMyClass.F(x: T);
|
|
begin
|
|
|
|
end;
|
|
|
|
procedure TMyClass.DoPoint(x: TPoint);
|
|
begin
|
|
|
|
end;
|
|
|
|
end.
|
|
|