Array-Parmeter have wrong brackets '(' insted of '['
Original Reporter info from Mantis: jc99
-
Reporter name: Joe care
Original Reporter info from Mantis: jc99
- Reporter name: Joe care
Description:
function TParamsExpr.GetDeclaration(full: Boolean): string;
Writes Arrayvar(someExpression) but it should give Arrayvar[SomeExpresion]
Steps to reproduce:
Parse :
const c:array[0..1] of byte = (1,2); begin write(c[0]); end.
PasWrite produces:
program test;
const
c : Array[0..1] of Byte = (1, 2);
begin
write(c(0));
end.
Additional information:
Provided patch ...
Mantis conversion info:
- Mantis ID: 37758
- OS: Win64
- OS Build: 10
- Build: latest
- Platform: x86-64
- Version: 3.3.1
- Fixed in version: 3.3.1
- Fixed in revision: 46878 (#48c86637)
- Target version: 3.2.2