mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-22 17:29:24 +02:00
15 lines
209 B
ObjectPascal
15 lines
209 B
ObjectPascal
{%FAIL}
|
|
{$mode objfpc}
|
|
{
|
|
test type mismatch when specializing constant values
|
|
}
|
|
program tgenconst7;
|
|
|
|
type
|
|
generic TInteger<const U: integer> = record end;
|
|
|
|
var
|
|
a: specialize TInteger<'string'>;
|
|
begin
|
|
end.
|