fpc/tests/webtbs/tw19277.pp
2011-05-19 19:31:08 +00:00

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.