Skip to content

Definite-initialisation check incorrectly flags loop counters in .fn scripts as uninitialised #9

Description

@mxmxmx888

There appears to be a validator issue in the MDEO script language for .fn files. Variables that are explicitly initialised before use in while loop conditions are still reported as “used before being initialized”.

Image

Actual behaviour:
The validator reports:
Identifier countDay is used before being initialized.

Expected behaviour:
countDay should be recognised as definitely initialised, since it is assigned 0 before being used in the while condition.

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