mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 21:48:09 +02:00

The main adjustments were as follows: - fixing coding style and identation - fixing some typos - using a better name for the property in tcallcandidates which holds the symbols created for anonymous parameter values
19 lines
325 B
ObjectPascal
19 lines
325 B
ObjectPascal
{$mode objfpc}
|
|
{$modeswitch implicitfunctionspecialization}
|
|
{
|
|
Test string literals (array of char) is compatible with open arrays
|
|
}
|
|
|
|
program timpfuncspez4;
|
|
uses
|
|
typinfo;
|
|
|
|
generic function DoThis<T>(a: array of T): TTypeKind;
|
|
begin
|
|
result := GetTypeKind(T);
|
|
end;
|
|
|
|
begin
|
|
if DoThis('string') <> tkChar then
|
|
Halt(-1);
|
|
end. |