Skip to content

Incorrect [Using undefined variable] error on unassigned variable declarations in autoconcat (non-strict mode) #1179

Open
@Pieter12345

Description

@Pieter12345

When having variable declarations in a script where that variable might never be assigned to, then an incorrect Using undefined variable: @var runtime error is given if that declaration is inside an autoconcat.
Example code:

string @var;
msg();

Problem:
autoconcat() gets the value of declaration string @var, causing this runtime error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThings that don't work as designed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions