* the symbol parsed for "specialize" does not need to be a type; it could be a procsym or some other type (e.g. a constant of the same name in a third unit)

git-svn-id: trunk@39233 -
This commit is contained in:
svenbarth 2018-06-15 13:49:26 +00:00
parent 598ac21791
commit 22a5e5e4ee

View File

@ -2837,8 +2837,7 @@ implementation
if isspecialize then
begin
if not assigned(srsym) or
(srsym.typ<>typesym) then
if not assigned(srsym) then
begin
identifier_not_found(orgstoredpattern,tokenpos);
srsym:=generrorsym;