[fpc-devel]interface inheritance (dom2) bug???

Peter Vreman peter at freepascal.org
Mon Aug 19 07:11:29 CEST 2002


> Hello,
> 
> I try to port my libxml2 wrapper for delphi to freepascal.
> I have the following problem:
> 
> If I compile the following code:
> 
>  > unit idom2;
> 
>  > interface
> 
>  > uses
>  >   SysUtils;
> 
>  > type
>  >   DomString    = WideString;
> 
>  >   IDomElement      = interface;
> 
>  >   IDomNode = interface
>  >     ['{D415EB3C-463D-4F6D-BD1F-168B8A364666}']
>  >     {property setters/getters}
> 
>  >     function  get_LocalName : DomString;
>  >     property localName       : DomString read get_LocalName;
>  >   end;
> 
>  >   IDomElement = interface(IDomNode)
>  >     ['{955D5EEC-6160-4AC9-ADFB-767E6AC09511}']
> 
>  >    function  getAttributeNS(
>  >            const namespaceURI : DomString;
>  >            const localName    : DomString) : DomString;
> 
>  >   end;
>  > end.
> 
> I get the following error message:
> 
> Error: dublicate identifier "localName".
> Hint: Identifier already defined in line 18.

Did you try using the -Sd flag to switch to delphi compatibility mode?







More information about the fpc-devel mailing list