View Issue Details

IDProjectCategoryView StatusLast Update
0036540LazarusIDEpublic2020-01-08 22:52
ReporterBenito van der Zander Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status newResolutionopen 
Platformamd64OSlinux 
Product Version2.0.6 
Summary0036540: Code tools do not recognize pchar helper
DescriptionWhen you use a pchar helper, you get "Error: illegal qualifier . found" in the IDE

Steps To Reproduceprogram 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
TagsNo tags attached.
Fixed in Revision
LazTarget
Widgetset
Attached Files

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2020-01-08 22:52 Benito van der Zander New Issue