Consider the following:
Delphi-Quellcode:
IFirstInterface = interface
procedure doStuff();
end;
ISecondInterface = interface
procedure doStuff();
end;
TImplementation = class(TInterfacedObject, IFirstInterface, ISecondInterface)
procedure doStuff();
end;
Compiles and works fine (unlike other languages). But probably not what you want. I know about
method resolution clauses and how to get around it. But I would like to get a warning that this does not look right at all.
Opinions?