mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 06:08:16 +02:00
15 lines
201 B
ObjectPascal
15 lines
201 B
ObjectPascal
{%FAIL}
|
|
{$mode objfpc}
|
|
{
|
|
test type mismatch when specializing generic type with constant value
|
|
}
|
|
program tgenconst10;
|
|
|
|
type
|
|
generic TByte<T> = record end;
|
|
|
|
var
|
|
a: specialize TByte<10>;
|
|
begin
|
|
end.
|