fpc/tests/test/tgenconst11.pp

13 lines
225 B
ObjectPascal

{%FAIL}
{$mode objfpc}
{
test def compare fail with specialized types
}
program tgenconst11;
type
generic TConst<const U: integer> = class end;
var
a:specialize TConst<10>;
begin
a:=specialize TConst<'string'>.Create;
end