Skip to content

MISSING_VAR incorrect in array loop #720

@wporter82

Description

@wporter82

When looping over an array of structs, setting any value of the local scoped struct will incorrectly be flagged as not being declared with a var statement

image

A workaround would be to add a new variable that we work with instead:

image

But this just adds complexity and possibly introduces potential bugs further down the line.

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