fpc/tests/test/tgenconst8.pp

15 lines
182 B
ObjectPascal

{%FAIL}
{$mode objfpc}
{
test out of range error with constants
}
program tgenconst8;
type
generic TByte<const U: Byte> = record end;
var
a: specialize TByte<300>;
begin
end.