mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-05 08:18:12 +02:00
30 lines
291 B
ObjectPascal
30 lines
291 B
ObjectPascal
{ %fail }
|
|
{ %norun }
|
|
|
|
{$ifdef fpc}
|
|
{$mode delphi}
|
|
{$endif}
|
|
|
|
type
|
|
tc = class
|
|
class procedure classmethod;
|
|
procedure method;
|
|
a : longint;
|
|
end;
|
|
|
|
ttc = class of tc;
|
|
|
|
class procedure tc.classmethod;
|
|
begin
|
|
a:= 5;
|
|
end;
|
|
|
|
procedure tc.method;
|
|
begin
|
|
end;
|
|
|
|
var
|
|
c: ttc;
|
|
begin
|
|
end.
|