GetTypeKind in Spring.pas hides built-in version in XE7 and up.

Issue #114 wontfix
Johan Bontes created an issue

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)

  1. Stefan Glienke repo owner

    I considered that but decided against it before XE7 release already. Just fully qualify System.GetTypeKind

  2. Log in to comment