mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 17:47:56 +02:00
17 lines
201 B
ObjectPascal
17 lines
201 B
ObjectPascal
{$mode objfpc}
|
|
type
|
|
generic tc<T> = class
|
|
procedure p(data : T);
|
|
end;
|
|
|
|
tc1 = specialize tc<string>;
|
|
|
|
procedure tc.p(data : T);
|
|
begin
|
|
readln(data);
|
|
writeln(data);
|
|
end;
|
|
|
|
begin
|
|
end.
|