Test case:
-----------------------------------------
int bug6109throwing() {
throw new Exception("throws");
}
int bug6109noThrow() nothrow {
auto g = [4][bug6109throwing() .. 1];
return 0;
}
-----------------------------------------
This should not compile since 'bug6109throwing' is not 'nothrow', but DMD currently accepts it. It is expected that the compiler to give an error of
x.d(4): Error: function x.bug6109noThrow 'bug6109noThrow' is nothrow yet may throw
The bug does not exist in 2.048.