mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-10 10:26:17 +02:00

hierarchies from other units that were compiled without debug information in case not all classes from the hierarchy are explicitly used (mantis #22495, #21503, #21259) git-svn-id: trunk@21972 -
50 lines
1.0 KiB
ObjectPascal
50 lines
1.0 KiB
ObjectPascal
{$mode objfpc}
|
|
|
|
unit uw22495;
|
|
|
|
interface
|
|
|
|
uses
|
|
DOM;
|
|
|
|
type
|
|
TNode = class;
|
|
|
|
INode = interface
|
|
['{DCE90E41-4D14-4BAE-9AFC-BA10FF643EA0}']
|
|
function GetChildNodes: TNode; // if you delete this line, then the error disappears
|
|
end;
|
|
|
|
TNode = class(TInterfacedObject, INode)
|
|
protected
|
|
function GetChildNodes: TNode;
|
|
function xxx:TDomNode; // if you do either of the next points, then the error disappears:
|
|
// - exchange this line with the next one, or
|
|
// - delete this procedure (along with its body), or
|
|
// - make this procedure public
|
|
function getOwnerDocument: TDOMDocument; // if you delete this procedure, then the error disappears
|
|
public
|
|
end;
|
|
|
|
implementation
|
|
|
|
{ TNode }
|
|
|
|
function TNode.GetChildNodes: TNode;
|
|
begin
|
|
Result:=nil;
|
|
end;
|
|
|
|
function TNode.xxx:TDomNode;
|
|
begin
|
|
Result:=nil;
|
|
end;
|
|
|
|
function TNode.getOwnerDocument:TDOMDocument;
|
|
begin
|
|
Result:=nil;
|
|
end;
|
|
|
|
end.
|
|
|