RasmusTidselbak / al-var-helper

6 stars 7 forks source link

RecordRef should be placed before InStream/OutStream #3

Closed jwikman closed 5 years ago

jwikman commented 5 years ago

When using the Sort Variables on an object that got variables of types RecordRef and InStream/OutStream the RecordRef variables is placed after the streams, but the AL CodeCop expects it to be before the streams.

Sort Variables (with complaints from the Code Analyzer):

    var
        IS: InStream;
        OS: OutStream;
        RecRef: RecordRef;

Correct way:

    var
        RecRef: RecordRef;
        IS: InStream;
        OS: OutStream;
RasmusTidselbak commented 5 years ago

Thanks for notifying me.

I've fixed it with the latest release