Browse Source

fcl-passrc: forbid nested anonymous procedure type

mattias 3 years ago
parent
commit
dedab626fe
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/fcl-passrc/src/pasresolver.pp

+ 1 - 1
packages/fcl-passrc/src/pasresolver.pp

@@ -12106,7 +12106,7 @@ begin
     else if p.Name<>'' then
       begin
       if CurName<>'' then
-        CurName:=p.Name+'__'+CurName
+        RaiseMsg(20220320132732,nCannotNestAnonymousX,sCannotNestAnonymousX,[GetElementTypeName(El)],El)
       else
         CurName:=p.Name;
       end;