Skip to content
  • Sven/Sarah Barth's avatar
    Correctly specialize generics if locally declared types are used (e.g. two... · 53ea24a0
    Sven/Sarah Barth authored
    Correctly specialize generics if locally declared types are used (e.g. two procedures could both define a different "TRec" type which is used to specialize a generic inside the procedures).
    
    symtype.pas, tdef:
      + add method "fullownerhierarchyname" which allows to retrieve the owner hierarchy name including procedure/function/method names
      + add method "fulltypename" which uses "fullownerhierarchyname" to return a full type name
    symdef.pas, tstoreddef:
      * implement "fullownerhierarchyname" (including caching of the result)
    pgenutil.pas, parse_generic_specialization_types_internal:
      * use "tdef.fulltypename" instead of "tdef.typename" to have unique values for each parsed type and thus for the specialization itself
    
    + tests
    
    git-svn-id: trunk@25175 -
    53ea24a0