Codetools: parse function-param of type "specialize G<T>.member". (Part of) issue #39699

This commit is contained in:
Martin 2023-03-09 23:51:02 +01:00
parent 44b14e0702
commit e923b4c5d5

View File

@ -1724,7 +1724,7 @@ begin
end;
end;
if NeedIdentifier and UpAtomIs('SPECIALIZE') then begin
ReadSpecialize(phpCreateNodes in Attr,Extract,Copying,Attr);
ReadTypeReference(phpCreateNodes in Attr,Extract,Copying,Attr);
NeedIdentifier:=false;
end;
if NeedIdentifier then begin
@ -4460,6 +4460,12 @@ var
begin
if (Scanner.CompilerMode=cmOBJFPC) and UpAtomIs('SPECIALIZE') then begin
ReadSpecialize(CreateNodes,Extract,Copying,Attr);
while CurPos.Flag=cafPoint do begin
// e.g. atype<params>.subtype
Next;
AtomIsIdentifierSaveE(20180411194209);
Next;
end;
exit;
end;
if CreateNodes then begin