Page MenuHomeFeedback Tracker

Scope bug
Closed, ResolvedPublic

Description

function foo() {

    bool b = true;

    if (b) {
        int value = 0;
    } else {
        int value = 0;
    }
}

//DUPLICATE VARIABLE 'VALUE'.

Reporting for Bubbles#0173 as he can't create an account right now.
I fundet this as well.

Details

Severity
None
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Modding

Event Timeline

GrosTon1 created this task.Jan 5 2019, 2:45 AM
GrosTon1 updated the task description. (Show Details)
rVn closed this task as Resolved.EditedApr 5 2019, 3:23 PM
rVn claimed this task.
rVn added a subscriber: rVn.

Hi,
this is known inconvenience and will likely stay in dayz's script due to some limitations. Should be solved in future projects which decide to use enfusion though ;)