Closed LadyCailin closed 1 year ago
This can be reproduced through example program:
@closureArray = array(closure() {
console('This does not execute.')
})
console('This executes.')
@closureArray[0]()
console('Code below execution required for the bug to occur.')
Running optimizer-test
on this program and manually formatting it results in:
__statements__(
assign(@closureArray, array(closure(console('This does not execute.')))),
console('This executes.'),
array_get(@closureArray, 0),
__autoconcat__(),
console('Code below execution required for the bug to occur.')
)
The following code causes a repro: