ItsDeltin / Overwatch-Script-To-Workshop

Converts scripts to Overwatch workshops.
209 stars 26 forks source link

Local variable capture does not work correctly for layered lambdas. #202

Closed ItsDeltin closed 3 years ago

ItsDeltin commented 3 years ago

This will throw an exception:

define a = 0;

WaitAsync(3, () =>
    WaitAsync(3, () => {
        define b = a;
    });
});

Possible fix: have ParseInfo support multiple local variable captures rather than just one.