struct K { ~this() nothrow {} } void main() { static class C { this(K, int) {} } static int foo(bool flag) { if (flag) throw new Exception("hello"); return 1; } try { new C(K(), foo(true)); } catch(Exception) { } } Result: object.Exception@test.d(18): hello Expected result: code does not throw exception.
Doesn't throw or doesn't catch the crown exception? I think it should throw and catch.
(In reply to Nicholas Wilson from comment #1) > Doesn't throw or doesn't catch the crown exception? I think it should throw > and catch. Yes, I meant, that the expected result is that code exits gracefully by throwing and catching exactly 1 exception.
Closing this. I was on a branch where I did some modifications to some other code. On git master it does this issue does not manifest.