Skip to content

Name shadowing #250

Closed
Closed
@sylefeb

Description

@sylefeb

Variable name shadowing currently produces an error (draft), however a strong warning may be better as there are situations where this acceptable (see e.g. #108 (comment)).

Overall name shadowing needs a complete pass to clarify and revise cases of name collisions (unit/subroutine/algorithm/variable/circuitry/instances).

Only clear error cases should trigger an error, e.g.:

int a = 0;
int a = 5; // this cannot be good

In such cases, the internal variable name truly collides anyway...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions