fpc/tests/webtbf/tw8019.pp
Jonas Maebe 66a07eba3e * give an error if the same method declaration is added twice to an
interface/class/object (mantis 8019)

git-svn-id: trunk@5721 -
2006-12-26 18:12:56 +00:00

22 lines
343 B
ObjectPascal

{ %fail }
{$mode delphi}
program test2;
type
XResult = integer;
XStr = integer;
PDNSEntry = ^XDNSEntry;
XDNSEntry =
record
end;
itest = interface(iunknown)
function GetHostByName(const Name: XStr; out Res: PDNSEntry): XResult;
function GetHostByName(const Name: XStr; out Res: XDNSEntry): XResult;
end;
begin
end.