mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-05 14:48:18 +02:00
16 lines
305 B
ObjectPascal
16 lines
305 B
ObjectPascal
program TNP;
|
|
{$mode objfpc}{$H+}
|
|
{$modeswitch nestedprocvars}
|
|
type
|
|
generic GenericA<T>=class
|
|
private
|
|
type
|
|
TIteratorfunction = procedure (const x:T) is nested;
|
|
// Fatal: Syntax error, ";" expected but "is" found
|
|
var private
|
|
end;
|
|
TSpec=specialize GenericA<integer>;
|
|
|
|
begin
|
|
end.
|