Verse defer stack not working

Summary

if you have nested expressions with defer statement not all of them will be called

Please select what you are reporting on:

Verse

What Type of Bug are you experiencing?

Verse

Steps to Reproduce

I provided screenshots which demonstrates this issue. I bet it related to nested async contexts

Expected Result

All defer statements called to run clean up logic

Observed Result

Defer statement not called. Inside Enter function (highlighted on screenshot)

Platform(s)

All

Upload an image


Probably related to this Verse: defer not always working it’s been unfixed since 3 years

FORT-1023926 has been ‘Closed’. This issue won’t be fixed—please see examples of why this may be the case.

what examples??? this is bug since the beginning of verse guys :joy:

this is definetely not fixed