Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing AA0139 when assigning a compound text #7970

Open
NKarolak opened this issue Feb 13, 2025 · 0 comments
Open

Missing AA0139 when assigning a compound text #7970

NKarolak opened this issue Feb 13, 2025 · 0 comments
Labels
CodeCop This is a specific static-code-analysis group (AA) requires-triage

Comments

@NKarolak
Copy link

NKarolak commented Feb 13, 2025

1. Describe the bug
Rule AA0139 Possible overflow assigning 'Text' to 'Code[10]' does not fire when assigning a compound text to code.

2. To Reproduce

procedure MyTest()
var
    Code10: Code[10];
    Text: Text;
begin
    Code10 := Text; // fires AA0139
    Code10 := Code10 + Text; // no AA0139
end;

3. Expected behavior
Rule AA0139 should fire on
Code10 := Code10 + Text;

4. Actual behavior
Rule AA0139 is not triggered.

5. Versions:

  • AL Language: v14.2.1249978
@kalberes kalberes added requires-triage CodeCop This is a specific static-code-analysis group (AA) labels Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CodeCop This is a specific static-code-analysis group (AA) requires-triage
Projects
None yet
Development

No branches or pull requests

2 participants