INIT doesn't work when using WITH for a record variable.
When I Try to use INIT function on for a record variable using 'WITH' then AL gives an error on as
"message": "The call is ambiguous between the following methods or properties: 'Init()' and 'Init()'"
Code snippet :
with TempEmailItem do begin
Init();
end;
Hi @rishiaurrishabh ! Could you please attach a minimal set of AL code dthat causes the issue?
@rishiaurrishabh It would be nice if you didn't just only use the title of the Issues. This is a very bad style and is not seen well in the github community ^^.
The title of an issue should be short and meaningful. The explanation and details come then in the description. ;)
Hi @rishiaurrishabh ! This is by design. You need to qualify the Init procedure with the instance name.
Hi @atoader ! for some record variable it works too..not sure if it is changed for AL because on NAV C/AL code it is supported.