mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-13 04:09:24 +02:00
* if the symbol belongs to the current def also consider it a specialization if it's a nameless type symbol from an implicit function specialization as their owner gets changed to the function itself
This commit is contained in:
parent
6a6a17717a
commit
a764c035b2
@ -2465,7 +2465,7 @@ implementation
|
|||||||
{ sym must be either a type or const }
|
{ sym must be either a type or const }
|
||||||
if not (sym.typ in [symconst.typesym,symconst.constsym]) then
|
if not (sym.typ in [symconst.typesym,symconst.constsym]) then
|
||||||
internalerror(2014050903);
|
internalerror(2014050903);
|
||||||
if sym.owner.defowner<>self then
|
if (sym.owner.defowner<>self) or (sp_generic_unnamed_type in sym.symoptions) then
|
||||||
exit(false);
|
exit(false);
|
||||||
if (sym.typ=symconst.constsym) and (sp_generic_const in sym.symoptions) then
|
if (sym.typ=symconst.constsym) and (sp_generic_const in sym.symoptions) then
|
||||||
exit(false);
|
exit(false);
|
||||||
@ -2506,7 +2506,7 @@ implementation
|
|||||||
{ sym must be either a type or const }
|
{ sym must be either a type or const }
|
||||||
if not (sym.typ in [symconst.typesym,symconst.constsym]) then
|
if not (sym.typ in [symconst.typesym,symconst.constsym]) then
|
||||||
internalerror(2014050904);
|
internalerror(2014050904);
|
||||||
if sym.owner.defowner<>self then
|
if (sym.owner.defowner<>self) or (sp_generic_unnamed_type in sym.symoptions) then
|
||||||
exit(true);
|
exit(true);
|
||||||
if (sym.typ=symconst.constsym) and (sp_generic_const in sym.symoptions) then
|
if (sym.typ=symconst.constsym) and (sp_generic_const in sym.symoptions) then
|
||||||
exit(true);
|
exit(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user