Skip to content

mxcli check misses CE0111 when COUNT output reuses a declared variable in an altered loop body #1914

Open

Description

@thebreadishard

Related to #893, which added checks for duplicate variable outputs. I may have found a case that still appears to be accepted.

Steps to reproduce
In a microflow, use MDL to replace a loop body.
In that body, declare an Integer variable named FacilityTrancheCount.
Add a COUNT activity over FacilityTrancheList, using FacilityTrancheCount as its output. The relevant MDL shape is:
Run mxcli check on the project after applying the MDL change.
Run Check in Studio Pro on the same project.
Expected: mxcli check reports the duplicate variable.

Actual: mxcli check succeeds, but Studio Pro reports CE0111 for FacilityTrancheCount.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions