From d54b7dd58fc0f617260b4cf6ec722e30fd68bab4 Mon Sep 17 00:00:00 2001 From: svenbarth Date: Sun, 9 Oct 2011 16:06:31 +0000 Subject: [PATCH] Added two reminders for me git-svn-id: branches/svenbarth/generics@19425 - --- compiler/pdecobj.pas | 1 + compiler/pexpr.pas | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/compiler/pdecobj.pas b/compiler/pdecobj.pas index d1154d7332..34cf93cc19 100644 --- a/compiler/pdecobj.pas +++ b/compiler/pdecobj.pas @@ -308,6 +308,7 @@ implementation begin { use single_type instead of id_type for specialize support } single_type(hdef,[stoAllowSpecialization,stoParseClassParent]); + { TODO : handle a generic interface } if (hdef.typ<>objectdef) then begin if intf then diff --git a/compiler/pexpr.pas b/compiler/pexpr.pas index 8bf7958fd1..91f20d5da7 100644 --- a/compiler/pexpr.pas +++ b/compiler/pexpr.pas @@ -2018,8 +2018,15 @@ implementation exit; end; +<<<<<<< HEAD { check hints, but only if it isn't a potential generic symbol; that is checked in sub_expr if it isn't a generic } +======= + { check hints if it is the final symbol that is used (e.g. in + case of generics only the dummy symbol or the non-generic one + is found here } + { TODO : correct this check } +>>>>>>> Added two reminders for me if assigned(srsym) and not ( (srsym.typ=typesym) and