mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-12 17:49:33 +02:00
14 lines
224 B
ObjectPascal
14 lines
224 B
ObjectPascal
{$mode objfpc}
|
|
generic procedure Foo<T>;
|
|
begin
|
|
WriteLn('Bar');
|
|
end;
|
|
|
|
begin
|
|
try
|
|
specialize Foo<Integer>; // this one works
|
|
except
|
|
specialize Foo<Integer>; // Error: Identifier not found "specialize"
|
|
end;
|
|
end.
|