fpc/tests/webtbf/tw7322.pp
Jonas Maebe 2b9bdf2155 * fixed mantis 6631, 7322 and 7989: check parameters and return
types of interface methods implemented in a class

git-svn-id: trunk@5686 -
2006-12-22 19:50:52 +00:00

25 lines
297 B
ObjectPascal

{ %fail }
program project1;
{$mode objfpc}{$H+}
type
IExample = interface
function add(a, b: single): integer;
end;
{ TExample }
TExample = class (TInterfacedObject, IExample)
function add(a, b: single): single;
end;
function texample.add(a, b: single): single;
begin
end;
begin
end.