pchar overload choosing problem
Original Reporter info from Mantis: ilyalyu
-
Reporter name: Ilya Lyubinskiy
Original Reporter info from Mantis: ilyalyu
- Reporter name: Ilya Lyubinskiy
Description:
After switching from 2.0.4 to 2.1.4 I get the following error, which did not appear before:
myunit.pas(NN,NN) Error: Can't determine which overloaded function to call
myunit.pas(NN,NN) Hint: Found declaration: TSock.Sendln(Open Array Of PChar)
myunit.pas(NN,NN) Hint: Found declaration: TSock.Sendln(PChar)
The line that generates this error contains the following code:
Sendln([Str1, Str2, Str3])
I think that it is clear that the first version of the function (i.e. "TSock.Sendln(Open Array Of PChar)") should be used.
Mantis conversion info:
- Mantis ID: 9085
- Version: 2.2.0
- Fixed in version: 2.2.0
- Fixed in revision: 7683 (#dc02fdbc)