Code tools do not recognize pchar helper
Original Reporter info from Mantis: BeniBela @benibela
-
Reporter name: Benito van der Zander
Original Reporter info from Mantis: BeniBela @benibela
- Reporter name: Benito van der Zander
Description:
When you use a pchar helper, you get "Error: illegal qualifier . found" in the IDE
Steps to reproduce:
program Project1;
{$mode objfpc}{$H+}
{$ModeSwitch typehelpers}
type TPcharHelper = type helper for pchar
function toString: string;
end;
function TPcharHelper.toString: string;
begin
result := self;
end;
var p: pchar;
// s: string;
begin
p := nil;
s := p.toString;
end.
You get the error message, when using code tools to auto declare the s variable, or go to the definition of toString
Mantis conversion info:
- Mantis ID: 36540
- OS: linux
- OS Build: opensuse
- Platform: amd64
- Version: 2.0.6