mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-12 00:28:24 +02:00
15 lines
220 B
ObjectPascal
15 lines
220 B
ObjectPascal
{%FAIL}
|
|
{$mode objfpc}
|
|
{$modeswitch advancedrecords}
|
|
{
|
|
test binary operator error with wrong constant type
|
|
}
|
|
program tgenconst15;
|
|
|
|
type
|
|
generic TInt<const I: string> = record
|
|
const c = I div I;
|
|
end;
|
|
|
|
begin
|
|
end. |