fpc/tests/test/packages/fcl-xml/uw22495.pp
Jonas Maebe df2eddd169 * correctly deal with writing debug information in the Stabs writer for class
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 -
2012-07-26 14:27:10 +00:00

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.