import std.stdio;

void main()
{
        scope(exit) writeln(res);
        
        auto res = 0;
}

This compiles, but using failure or success in the scope guard statement gives "undefined identifier res".
Is this intended? If yes, why?

Reply via email to