When you sort your variables the first function is removed.
Prerequisites for bug:
Global variable above procedure
Scope(‘OnPrem’) above procedure
Procedure should have at least 2 parameters and local variable
codeunit 50000 "AL Var Helper Sorting Bug"
{
var
Variable: Text;
[Scope('OnPrem')]
procedure SampleProcedure(CurrencyCode: Code[10]; PostingDate: Date)
var
Currency: Record Currency;
begin
end;
}
After sorting:
codeunit 50000 "AL Var Helper Sorting Bug"
{
var
Variable: Text;
[Scope('OnPrem')]
var
Currency: Record Currency;
begin
end;
}
When you sort your variables the first function is removed.
Prerequisites for bug:
After sorting: