Initialize variables with record-type constants
Original Reporter info from Mantis: Ask
-
Reporter name: Alexander S. Klenin
Original Reporter info from Mantis: Ask
- Reporter name: Alexander S. Klenin
Description:
In the following code:
type
TPoint = record x, y: Integer; end;
const
CP: TPoint = (x: 1; y: 2);
var
V1: TPoint = (x: 1; y: 2);
V2: TPoint = CP;
begin
end.
the final initialization currently fails.
IMO allowing it would be an improvement.
Mantis conversion info:
- Mantis ID: 22277