[Issue 13118] Allow non-`@nogc` stuff in `@nogc` function contracts

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Jul 13 08:34:29 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=13118

--- Comment #4 from bearophile_hugs at eml.cc ---
(In reply to yebblies from comment #3)

> assert throws an error and does not violate nothrow.

This compiles, but is it good?


void foo() nothrow
in {
    throw new Exception(null);
} body {
}
void main() {}

--


More information about the Digitalmars-d-bugs mailing list