microsoft / AL

Home of the Dynamics 365 Business Central AL Language extension for Visual Studio Code. Used to track issues regarding the latest version of the AL compiler and developer tools available in the Visual Studio Code Marketplace or as part of the AL Developer Preview builds for Dynamics 365 Business Central.
MIT License
728 stars 241 forks source link

AL0570: The symbol X results in the same translation ID #6658

Open f4n0 opened 3 years ago

f4n0 commented 3 years ago

Please include the following with each issue:

1. Describe the bug I've created an overload (I had to modify only a parameter, so I duplicated the function and modify only the parameter) and at first sight, no errors were thrown. But when I tried to compile the project it will return me this error: error AL0570: The symbol 'X' results in the same translation ID as one or more other symbols. Rename symbol to resolve the problem.

Yes I see that the error says "Rename the symbol to solve the issue" but, I don't think that is right solution. Why I must change the name of the symbol if they are in two different procedure (but with the same name)??

2. To Reproduce Steps to reproduce the behavior:

    local procedure Overload(var test: text)
    var
        myLabel: Label 'AH!';
    begin

    end;

    local procedure Overload(var test: Integer)
    var
        myLabel: Label 'AH!';
    begin

    end;

and then compile!

Note: Because the developers need to copy and paste the code snippet, including a code snippet as a media file (i.e. .gif) is not sufficient.

3. Expected behavior No error thrown, the id must be different because they are different procedures.

4. Actual behavior A clear and concise description of what happened accompanied by images, animations, or a link to a video showing the issue occurring

5. Versions:

Final Checklist

Please remember to do the following:

kalberes commented 3 years ago

Looks like a bug. Thanks.

f0ffee commented 2 years ago

Any updates on this? The bug is still present in AL Language v9.3.646020

sauerkreut commented 1 year ago

Any updates on this? The bug is still present in AL Language v12.0.842197 with AL Compiler version 12.0.12.55789