Can't use TStringHelper with SysUtils functions
Original Reporter info from Mantis: silvioprog
-
Reporter name: silvioprog
Original Reporter info from Mantis: silvioprog
- Reporter name: silvioprog
Description:
Hello,
You can't use TStringHelper with some SysUtils functions.
Steps to reproduce:
Try to compile this code:
program Project1; {$mode objfpc}{$H+} uses SysUtils; begin WriteLn(ExtractFileExt(ParamStr(0)).Substring(1)); ReadLn; end.
The result will be:
project1.lpr(9,39) Error: Illegal qualifier
Additional information:
A possible fix would be changing the "TStringHelper" declaration from "TStringHelper = Type Helper for AnsiString" to "TStringHelper = Type Helper for string", keeping it Delphi compatible.
Topic about this issue: http://lists.freepascal.org/pipermail/fpc-pascal/2016-April/047529.html
Mantis conversion info:
- Mantis ID: 30016
- Version: 3.1.1