[Issue 7018] finally block not executed for assertions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Nov 26 20:46:19 PST 2011


http://d.puremagic.com/issues/show_bug.cgi?id=7018


Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla at digitalmars.com
         Resolution|                            |INVALID


--- Comment #1 from Walter Bright <bugzilla at digitalmars.com> 2011-11-26 20:45:19 PST ---
The behavior is correct. assert throws a non-recoverable exception, which means
that finally blocks are not executed.

If a test depends on finally being executed after an assert, then the test case
is wrong.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list