[Issue 17494] Do not execute scope(...) if an Error exception has been thrown
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Sep 5 14:48:37 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=17494
moonlightsentinel at disroot.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
CC| |moonlightsentinel at disroot.o
| |rg
Resolution|FIXED |---
--- Comment #5 from moonlightsentinel at disroot.org ---
This issue was never fixed:
=====================================
import core.stdc.stdio : puts;
void main()
{
scope (exit) puts("Hello, World!");
throwError();
}
void throwError()
{
throw new Error("");
}
=====================================
Hello, World!
object.Error@(0)
----------------
onlineapp.d:11 void onlineapp.throwError() [0x5579194b2bea]
onlineapp.d:6 _Dmain [0x5579194b2b78]
--
More information about the Digitalmars-d-bugs
mailing list