{$mode objfpc} {$modeswitch implicitfunctionspecialization} { Test "array of enum" } program timpfuncspez5; uses typinfo; type TMyEnum = (_A, _B, _C); generic procedure DoThis(value: T); begin if GetTypeKind(value[0]) <> tkEnumeration then Halt(-1); end; begin DoThis([_A, _B]); end.