fpc/tests/webtbs/tw10489.pp
florian 2d91fef4f1 + accept system.string, resolves #10489
git-svn-id: trunk@9727 -
2008-01-12 22:25:33 +00:00

21 lines
353 B
ObjectPascal

{$mode objfpc}
program test;
uses
TypInfo;
function GetTypeInfo(const i: Integer): PTypeInfo;
begin
case i of
0: Result := TypeInfo(System.Integer);
1: Result := TypeInfo(System.Int64);
2: Result := TypeInfo(System.String); //syntax error
3: Result := TypeInfo(System.WideString);
else
Result := nil;
end;
end;
begin
end.