Copy(S, 1, 2, 3) wrong error message
Original Reporter info from Mantis: kluug.net @onpok
-
Reporter name: Ondrej Pokorny
Original Reporter info from Mantis: kluug.net @onpok
- Reporter name: Ondrej Pokorny
Description:
If you use the ShortString-variant of Copy with wrong parameter count, you get a "Type mismatch" compiler error instead of "wrong number of parameters".
Steps to reproduce:
program Project1;
var
S: ShortString;
begin
S := Copy(S, 1, 2, 3); // << project1.lpr(5,14) Error: Type mismatch
end.
Additional information:
Patch attached.