Overloaded functions in interfaces
Original Reporter info from Mantis: mse
-
Reporter name: Martin Schreiber
Original Reporter info from Mantis: mse
- Reporter name: Martin Schreiber
Description:
Compiling MSEide 1.0rc2 (please get it from http://mypage.bluewin.ch/msegui/ ) I get the error:
[...]
Compiling /home/mse/test/msegui/lib/common/db/msedb.pas
msedb.pas(35,13) Error: overloaded functions have the same parameter list
msedb.pas(835,1) Fatal: There were 1 errors compiling module, stopping
The interface definition:
imselocate = interface(inullinterface)['{2680958F-F954-DA11-9015-00C0CA1308FF}']
function locate(const key: integer; const field: tfield;
const options: locateoptionsty = []): locateresultty;
function locate(const key: string; const field: tfield;
const options: locateoptionsty = []): locateresultty;
end;
No error with 2.0.5.
Please compile with the uploaded script, I was not able to reproduce the problem with a simpler testcase, sorry.
Mantis conversion info:
- Mantis ID: 8140
- Version: 2.2.0
- Fixed in version: 2.2.0
- Fixed in revision: 6074 (#6c05674d)