mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-09 09:28:48 +02:00
20 lines
259 B
ObjectPascal
20 lines
259 B
ObjectPascal
program tw21593a;
|
|
|
|
{$MODE DELPHI}
|
|
|
|
type
|
|
TWrapper<T> = record
|
|
class procedure Test; static;
|
|
end;
|
|
|
|
class procedure TWrapper<T>.Test;
|
|
const
|
|
Size = SizeOf(T); { Error: Illegal expression }
|
|
begin
|
|
Writeln(Size);
|
|
end;
|
|
|
|
begin
|
|
TWrapper<Byte>.Test;
|
|
end.
|