GetTypeKind in Spring.pas hides built-in version in XE7 and up.
Issue #114
wontfix
A define need to be added around GetTypeKind to make sure the intrinsic in XE7 and up is always called.
unit Spring;
{$IF CompilerVersion < 28}
function GetTypeKind(typeInfo: PTypeInfo): TTypeKind; inline;
{$ENDIF}
{$IF CompilerVersion < 28}
function GetTypeKind(typeInfo: PTypeInfo): TTypeKind;
begin
Result := typeInfo.Kind;
end;
{$ENDIF}
Comments (2)
-
repo owner -
repo owner - changed status to wontfix
- Log in to comment
I considered that but decided against it before XE7 release already. Just fully qualify System.GetTypeKind