mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 12:28:08 +02:00
21 lines
229 B
ObjectPascal
21 lines
229 B
ObjectPascal
{ %fail }
|
|
{$mode objfpc}
|
|
type
|
|
generic tc<T> = class
|
|
procedure p(data : T);
|
|
end;
|
|
|
|
tr = record
|
|
end;
|
|
|
|
tc1 = specialize tc<tr>;
|
|
|
|
procedure tc.p(data : T);
|
|
begin
|
|
readln(data);
|
|
writeln(data);
|
|
end;
|
|
|
|
begin
|
|
end.
|