tw10489.pp 353 B

1234567891011121314151617181920
  1. {$mode objfpc}
  2. program test;
  3. uses
  4. TypInfo;
  5. function GetTypeInfo(const i: Integer): PTypeInfo;
  6. begin
  7. case i of
  8. 0: Result := TypeInfo(System.Integer);
  9. 1: Result := TypeInfo(System.Int64);
  10. 2: Result := TypeInfo(System.String); //syntax error
  11. 3: Result := TypeInfo(System.WideString);
  12. else
  13. Result := nil;
  14. end;
  15. end;
  16. begin
  17. end.