Regression: Overloaded function with array of objects parameter hides function with array of string parameter
Original Reporter info from Mantis: Hixie
-
Reporter name: Ian Hickson
Original Reporter info from Mantis: Hixie
- Reporter name: Ian Hickson
Description:
{$MODE OBJFPC}
program test;
type
TTest = class end;
procedure E(Arg1: array of UTF8String);
begin end;
procedure E(Arg1: array of TTest);
begin end;
begin
E(['aa']); // Incompatible types: got "Constant String" expected "TTest"
end.
// this used to work as of 4 months ago or so, this is a relatively recent regression
Mantis conversion info:
- Mantis ID: 26976
- OS: Debian
- Build: 2014/10/30
- Platform: x86_64
- Version: 2.7.1
- Fixed in version: 3.0.0
- Fixed in revision: 28954 (#dc4a2a59)